Skip to content

Commit

Permalink
gas limit u64 instead of NumExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicalinluca committed Jul 18, 2024
1 parent c54c464 commit 6f94f55
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use multiversx_sc::abi::{ContractAbi, EndpointAbi, EndpointMutabilityAbi, InputA

use super::{snippet_gen_common::write_newline, snippet_type_map::map_abi_type_to_rust_type};

const DEFAULT_GAS: &str = "30,000,000";
const DEFAULT_GAS: &str = "30_000_000u64";

pub(crate) fn write_interact_struct_impl(
file: &mut File,
Expand Down Expand Up @@ -60,7 +60,7 @@ fn write_deploy_method_impl(file: &mut File, init_abi: &EndpointAbi, name: &Stri
.interactor
.tx()
.from(&self.wallet_address)
.gas(NumExpr("{DEFAULT_GAS}"))
.gas({DEFAULT_GAS})
.typed(proxy::{})
.init({})
.code(&self.contract_code)
Expand Down Expand Up @@ -95,7 +95,7 @@ fn write_upgrade_endpoint_impl(file: &mut File, upgrade_abi: &EndpointAbi, name:
.tx()
.to(self.state.current_address())
.from(&self.wallet_address)
.gas(NumExpr("{DEFAULT_GAS}"))
.gas({DEFAULT_GAS})
.typed(proxy::{})
.upgrade({})
.code(&self.contract_code)
Expand Down Expand Up @@ -210,7 +210,7 @@ fn write_contract_call(file: &mut File, endpoint_abi: &EndpointAbi, name: &Strin
.tx()
.from(&self.wallet_address)
.to(self.state.current_address())
.gas(NumExpr("{DEFAULT_GAS}"))
.gas({DEFAULT_GAS})
.typed(proxy::{}Proxy)
.{}({}){}
.returns(ReturnsResultUnmanaged)
Expand Down

0 comments on commit 6f94f55

Please sign in to comment.