difftreelog
added test for evm coder
in: master
3 files changed
tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.soldiffbeforeafterbothno syntactic changes
tests/src/eth/evmToSubstrate/coderTest.tsdiffbeforeafterboth154 return { field_0: p.key, field_1: p.value };154 return { field_0: p.key, field_1: p.value };155 }),155 }),156 )156 )157 .send({ from: signer });157 .send({ from: signer, gas: 20_000_000 });158 },158 },159 );159 );160 console.log(160 console.log(tests/src/eth/evmToSubstrate/feeBench.tsdiffbeforeafterboth258 258 259 const mintWithBulkPropProxyContractFee = await helper.arrange.calculcateFee({Ethereum: signer}, async () => {259 const mintWithBulkPropProxyContractFee = await helper.arrange.calculcateFee({Ethereum: signer}, async () => {260 await contract.methods.mintToSubstrateBulkProperty(evmContractProxyBulk.options.address, myAccount.addressRaw, properties.slice(0, propertiesNumber)260 await contract.methods.mintToSubstrateBulkProperty(evmContractProxyBulk.options.address, myAccount.addressRaw, properties.slice(0, propertiesNumber)261 .map(p => { return {field_0: p.key, field_1: p.value}; })).send({from: signer});261 .map(p => { return {field_0: p.key, field_1: p.value}; })).send({from: signer, gas: 25_000_000});262 });262 });263 console.log(`token mint from contract(with bulk prop.) to the Substrate Id: ${mintWithBulkPropProxyContractFee}`);263 console.log(`token mint from contract(with bulk prop.) to the Substrate Id: ${mintWithBulkPropProxyContractFee}`);264 264