Skip to content

Commit

Permalink
Merge pull request #1207 from gfusee/add_gas_limit_to_tx_call_data
Browse files Browse the repository at this point in the history
added gas limit information in the TxCall -> ContractCallWithEgld conversion
  • Loading branch information
andrei-marinica authored Aug 25, 2023
2 parents 6a30ac8 + 94aff10 commit fe62c37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/scenario/src/scenario/model/transaction/tx_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ impl TxCall {
(&self.to.value).into(),
self.function.as_bytes(),
(&self.egld_value.value).into(),
)
.convert_to_esdt_transfer_call(
);

contract_call.basic.explicit_gas_limit = self.gas_limit.value;

contract_call = contract_call.convert_to_esdt_transfer_call(
self.esdt_value
.iter()
.map(|esdt| {
Expand Down

0 comments on commit fe62c37

Please sign in to comment.