git.delta.rocks / unique-network / refs/commits / 6e6dff56f545

difftreelog

added coderTest via Conract

PraetorP2022-11-08parent: #7aaf8c5.patch.diff
in: master

4 files changed

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth

no changes

modifiedtests/src/eth/evmToSubstrate/EvmToSubstrateHelper.soldiffbeforeafterboth
177 emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);177 emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);
178 }178 }
179
180 function proxyProperties(
181 address _collection,
182 uint256 _tokenId,
183 NftProperty[] calldata _properties
184 ) external checkRestrictions(_collection) {
185 uint256 propertiesLength = _properties.length;
186 require(propertiesLength > 0, "Properies is empty");
187
188 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
196
197 nftCollection.setProperties(_tokenId, _properties);
198 } else {
199 revert("Wrong collection type. Works only with NFT or RFT");
200 }
201 }
179}202}
180203
addedtests/src/eth/evmToSubstrate/coderTest.tsdiffbeforeafterboth

no changes