difftreelog
added coderTest via Conract
in: master
4 files changed
pallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterbothbinary blob — no preview
pallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterbothno changes
tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.soldiffbeforeafterboth177 emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);177 emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);178 }178 }179180 function proxyProperties(181 address _collection,182 uint256 _tokenId,183 NftProperty[] calldata _properties184 ) external checkRestrictions(_collection) {185 uint256 propertiesLength = _properties.length;186 require(propertiesLength > 0, "Properies is empty");187188 Collection commonContract = Collection(_collection);189 bytes32 collectionType = keccak256(bytes(commonContract.uniqueCollectionType()));190 191 if (collectionType == REFUNGIBLE_COLLECTION_TYPE) {192 revert("Wrong collection type. Works only with NFT or RFT");193 } else if (collectionType == NONFUNGIBLE_COLLECTION_TYPE) {194 UniqueNFT nftCollection = UniqueNFT(_collection);195 196197 nftCollection.setProperties(_tokenId, _properties);198 } else {199 revert("Wrong collection type. Works only with NFT or RFT");200 }201 }179}202}180203tests/src/eth/evmToSubstrate/coderTest.tsdiffbeforeafterbothno changes