-
Notifications
You must be signed in to change notification settings - Fork 116
feat(tendermint): support unsigned txs for ledger's keplr extension #2148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ad09603
cba08f4
5e60597
4af3927
bc1a0e0
cb6c82b
221e5a2
2bfb05b
07ead0c
00059b3
11c0a89
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,8 @@ pub struct TendermintActivationParams { | |
| #[serde(default)] | ||
| #[serde(deserialize_with = "deserialize_account_public_key")] | ||
| with_pubkey: Option<TendermintPublicKey>, | ||
| #[serde(default)] | ||
| is_keplr_from_ledger: bool, | ||
| } | ||
|
|
||
| fn deserialize_account_public_key<'de, D>(deserializer: D) -> Result<Option<TendermintPublicKey>, D::Error> | ||
|
|
@@ -234,6 +236,7 @@ impl PlatformCoinWithTokensActivationOps for TendermintCoin { | |
| protocol_conf: Self::PlatformProtocolInfo, | ||
| ) -> Result<Self, MmError<Self::ActivationError>> { | ||
| let conf = TendermintConf::try_from_json(&ticker, coin_conf)?; | ||
| let is_keplr_from_ledger = activation_request.is_keplr_from_ledger && activation_request.with_pubkey.is_some(); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: Can this be a
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it can't. If you are using hardware wallet,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aha, then does it make sense to |
||
|
|
||
| let activation_policy = if let Some(pubkey) = activation_request.with_pubkey { | ||
| if ctx.is_watcher() || ctx.use_watchers() { | ||
|
|
@@ -265,6 +268,7 @@ impl PlatformCoinWithTokensActivationOps for TendermintCoin { | |
| activation_request.rpc_urls, | ||
| activation_request.tx_history, | ||
| activation_policy, | ||
| is_keplr_from_ledger, | ||
| ) | ||
| .await | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.