From ab7466d7b8ed19e89b677044cb9e5fccb4299a08 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Mon, 06 Feb 2023 08:59:49 +0000 Subject: [PATCH] fix: PR --- --- a/pallets/nonfungible/src/erc.rs +++ b/pallets/nonfungible/src/erc.rs @@ -55,10 +55,8 @@ pub enum ERC721TokenEvent { /// The token has been changed. TokenChanged { - /// Collection ID. + /// Token ID. #[indexed] - collection_id: Address, - /// Token ID. token_id: U256, }, } --- a/pallets/nonfungible/src/stubs/UniqueNFT.sol +++ b/pallets/nonfungible/src/stubs/UniqueNFT.sol @@ -19,7 +19,7 @@ /// @dev inlined interface contract ERC721TokenEvent { - event TokenChanged(address indexed collectionId, uint256 tokenId); + event TokenChanged(uint256 indexed tokenId); } /// @title A contract that allows to set and delete token properties and change token property permissions. --- a/pallets/refungible/src/erc.rs +++ b/pallets/refungible/src/erc.rs @@ -64,10 +64,8 @@ pub enum ERC721TokenEvent { /// The token has been changed. TokenChanged { - /// Collection ID. + /// Token ID. #[indexed] - collection_id: Address, - /// Token ID. token_id: U256, }, } --- a/pallets/refungible/src/stubs/UniqueRefungible.sol +++ b/pallets/refungible/src/stubs/UniqueRefungible.sol @@ -19,7 +19,7 @@ /// @dev inlined interface contract ERC721TokenEvent { - event TokenChanged(address indexed collectionId, uint256 tokenId); + event TokenChanged(uint256 indexed tokenId); } /// @title A contract that allows to set and delete token properties and change token property permissions. --- a/tests/src/eth/abi/nonFungible.json +++ b/tests/src/eth/abi/nonFungible.json @@ -54,12 +54,6 @@ "inputs": [ { "indexed": true, - "internalType": "address", - "name": "collectionId", - "type": "address" - }, - { - "indexed": false, "internalType": "uint256", "name": "tokenId", "type": "uint256" --- a/tests/src/eth/abi/reFungible.json +++ b/tests/src/eth/abi/reFungible.json @@ -54,12 +54,6 @@ "inputs": [ { "indexed": true, - "internalType": "address", - "name": "collectionId", - "type": "address" - }, - { - "indexed": false, "internalType": "uint256", "name": "tokenId", "type": "uint256" --- a/tests/src/eth/api/UniqueNFT.sol +++ b/tests/src/eth/api/UniqueNFT.sol @@ -14,7 +14,7 @@ /// @dev inlined interface interface ERC721TokenEvent { - event TokenChanged(address indexed collectionId, uint256 tokenId); + event TokenChanged(uint256 indexed tokenId); } /// @title A contract that allows to set and delete token properties and change token property permissions. --- a/tests/src/eth/api/UniqueRefungible.sol +++ b/tests/src/eth/api/UniqueRefungible.sol @@ -14,7 +14,7 @@ /// @dev inlined interface interface ERC721TokenEvent { - event TokenChanged(address indexed collectionId, uint256 tokenId); + event TokenChanged(uint256 indexed tokenId); } /// @title A contract that allows to set and delete token properties and change token property permissions. --- a/tests/src/eth/events.test.ts +++ b/tests/src/eth/events.test.ts @@ -393,7 +393,6 @@ expect(result.events.TokenChanged).to.be.like({ event: 'TokenChanged', returnValues: { - collectionId: collectionAddress, tokenId: tokenId, }, }); @@ -406,7 +405,6 @@ expect(result.events.TokenChanged).to.be.like({ event: 'TokenChanged', returnValues: { - collectionId: collectionAddress, tokenId: tokenId, }, }); -- gitstuff