Skip to content

Commit

Permalink
clean memory on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gfusee committed May 31, 2024
1 parent 1bde29e commit d897b8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions abi-build/src/generator/impl_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ fn impl_abi_constructor(contract_info_name: &str, abi_constructor: &AbiConstruct
let function_token = quote! {
/// This asynchronous function encapsulates the logic for deploying a smart contract to the blockchain.
pub async fn #function_name<Code: AsBytesValue, Executor: DeployExecutor>(_novax_deploy_data: DeployData<Code>, _novax_executor: &mut Executor, _novax_egld_value: num_bigint::BigUint, _novax_gas_limit: u64, #function_inputs) -> Result<(Address, CallResult<#function_native_outputs>), NovaXError> {
let _novax_request_arc = crate::utils::static_request_arc::get_static_request_arc_clone();

let mut _novax_contract = #contract_info_ident::new(&multiversx_sc::types::Address::from(<[u8;32]>::default()));

#endpoint_args_let_statements
Expand Down

0 comments on commit d897b8d

Please sign in to comment.