diff --git a/src/commands/staking/delegate/stake.rs b/src/commands/staking/delegate/stake.rs index a8611787c..2dda7f0a1 100644 --- a/src/commands/staking/delegate/stake.rs +++ b/src/commands/staking/delegate/stake.rs @@ -35,7 +35,7 @@ impl StakeContext { Box::new(near_primitives::transaction::FunctionCallAction { method_name: "stake".to_string(), args: serde_json::to_vec(&serde_json::json!({ - "amount": amount, + "amount": amount.to_string(), }))?, gas: crate::common::NearGas::from_tgas(50).as_gas(), deposit: 0, diff --git a/src/commands/staking/delegate/unstake.rs b/src/commands/staking/delegate/unstake.rs index 8aa10f9dd..b17413795 100644 --- a/src/commands/staking/delegate/unstake.rs +++ b/src/commands/staking/delegate/unstake.rs @@ -35,7 +35,7 @@ impl UnstakeContext { Box::new(near_primitives::transaction::FunctionCallAction { method_name: "unstake".to_string(), args: serde_json::to_vec(&serde_json::json!({ - "amount": amount, + "amount": amount.to_string(), }))?, gas: crate::common::NearGas::from_tgas(50).as_gas(), deposit: 0, diff --git a/src/commands/staking/delegate/withdraw.rs b/src/commands/staking/delegate/withdraw.rs index 181913e9b..4a4a36d4c 100644 --- a/src/commands/staking/delegate/withdraw.rs +++ b/src/commands/staking/delegate/withdraw.rs @@ -35,7 +35,7 @@ impl WithdrawContext { Box::new(near_primitives::transaction::FunctionCallAction { method_name: "withdraw".to_string(), args: serde_json::to_vec(&serde_json::json!({ - "amount": amount, + "amount": amount.to_string(), }))?, gas: crate::common::NearGas::from_tgas(50).as_gas(), deposit: 0,