Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
FroVolod committed Feb 11, 2024
1 parent cff0ad5 commit e0d904c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/staking/delegate/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/staking/delegate/unstake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/staking/delegate/withdraw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e0d904c

Please sign in to comment.