difftreelog
added test for evm coder
in: master
3 files changed
tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.soldiffbeforeafterboth--- a/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol
+++ b/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol
@@ -187,12 +187,11 @@
Collection commonContract = Collection(_collection);
bytes32 collectionType = keccak256(bytes(commonContract.uniqueCollectionType()));
-
+
if (collectionType == REFUNGIBLE_COLLECTION_TYPE) {
revert("Wrong collection type. Works only with NFT or RFT");
} else if (collectionType == NONFUNGIBLE_COLLECTION_TYPE) {
UniqueNFT nftCollection = UniqueNFT(_collection);
-
nftCollection.setProperties(_tokenId, _properties);
} else {
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.tsdiffbeforeafterboth--- a/tests/src/eth/evmToSubstrate/feeBench.ts
+++ b/tests/src/eth/evmToSubstrate/feeBench.ts
@@ -258,7 +258,7 @@
const mintWithBulkPropProxyContractFee = await helper.arrange.calculcateFee({Ethereum: signer}, async () => {
await contract.methods.mintToSubstrateBulkProperty(evmContractProxyBulk.options.address, myAccount.addressRaw, properties.slice(0, propertiesNumber)
- .map(p => { return {field_0: p.key, field_1: p.value}; })).send({from: signer});
+ .map(p => { return {field_0: p.key, field_1: p.value}; })).send({from: signer, gas: 25_000_000});
});
console.log(`token mint from contract(with bulk prop.) to the Substrate Id: ${mintWithBulkPropProxyContractFee}`);