Skip to content

Commit

Permalink
chore: bump near-gas version
Browse files Browse the repository at this point in the history
  • Loading branch information
iho committed Sep 24, 2023
1 parent 6b066f9 commit a3735d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ near-crypto = "0.17.0"
near-primitives = "0.17.0"
near-jsonrpc-client = "0.6.0"
near-jsonrpc-primitives = "0.17.0"
near-gas = { git = "https://github.com/iho/near-gas.git", rev = "b62074fe945c31a6a3807ac869f952784b9a3871", features = [

near-gas = { git = "https://github.com/Mr0melian/near-gas.git", rev = "e6cb97e25064231f5e34c96ea4887f75169fe4cb", features = [
"serde",
"borsh",
"schemars",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::str::FromStr;

use serde_json::json;

#[derive(Debug, Clone, interactive_clap::InteractiveClap)]
Expand Down Expand Up @@ -99,9 +97,7 @@ impl From<SignerAccountIdContext> for crate::commands::ActionContext {
near_primitives::transaction::FunctionCallAction {
method_name: "create_account".to_string(),
args,
gas: crate::common::NearGas::from_str("30 TeraGas")
.unwrap()
.as_gas(),
gas: crate::common::NearGas::from_tgas(30).as_gas(),
deposit: item
.account_properties
.initial_balance
Expand Down
6 changes: 1 addition & 5 deletions src/commands/account/storage_management/storage_deposit.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::str::FromStr;

use inquire::Select;

#[derive(Debug, Clone, interactive_clap::InteractiveClap)]
Expand Down Expand Up @@ -122,9 +120,7 @@ impl SignerAccountIdContext {
args: serde_json::json!({ "account_id": &receiver_account_id })
.to_string()
.into_bytes(),
gas: crate::common::NearGas::from_str("50 TeraGas")
.unwrap()
.as_gas(),
gas: crate::common::NearGas::from_tgas(50).as_gas(),
deposit: deposit.to_yoctonear(),
},
)],
Expand Down
6 changes: 1 addition & 5 deletions src/commands/account/storage_management/storage_withdraw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::str::FromStr;

#[derive(Debug, Clone, interactive_clap::InteractiveClap)]
#[interactive_clap(input_context = super::ContractContext)]
#[interactive_clap(output_context = WithdrawArgsContext)]
Expand Down Expand Up @@ -70,9 +68,7 @@ impl SignerAccountIdContext {
})
.to_string()
.into_bytes(),
gas: crate::common::NearGas::from_str("50 TeraGas")
.unwrap()
.as_gas(),
gas: crate::common::NearGas::from_tgas(50).as_gas(),
deposit: crate::common::NearBalance::from_yoctonear(1)
.to_yoctonear(),
},
Expand Down

0 comments on commit a3735d2

Please sign in to comment.