Skip to content

Commit

Permalink
Problem: Incorrect decimal parsing in solo machine CLI (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
devashishdxt authored Apr 27, 2022
1 parent d97266a commit 96bf65e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions solo-machine-core/src/model/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::{

#[derive(Debug, FromRow)]
struct IbcData {
#[allow(dead_code)]
path: String,
data: Vec<u8>,
}
Expand Down
2 changes: 2 additions & 0 deletions solo-machine/src/command/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pub enum IbcCommand {
/// Chain ID of IBC enabled chain
chain_id: ChainId,
/// Amount to send to IBC enabled chain
#[structopt(parse(try_from_str = ::primitive_types::U256::from_dec_str))]
amount: U256,
/// Denom of tokens to send to IBC enabled chain
denom: Identifier,
Expand All @@ -85,6 +86,7 @@ pub enum IbcCommand {
/// Chain ID of IBC enabled chain
chain_id: ChainId,
/// Amount to receive from IBC enabled chain
#[structopt(parse(try_from_str = ::primitive_types::U256::from_dec_str))]
amount: U256,
/// Denom of tokens to receive from IBC enabled chain
denom: Identifier,
Expand Down

0 comments on commit 96bf65e

Please sign in to comment.