--- a/pallets/unique/src/eth/mod.rs +++ b/pallets/unique/src/eth/mod.rs @@ -48,7 +48,7 @@ impl EvmCollectionHelpers { #[weight(>::create_collection())] fn create_nonfungible_collection( - &self, + &mut self, caller: caller, name: string, description: string, --- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol +++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol @@ -36,12 +36,12 @@ string memory name, string memory description, string memory tokenPrefix - ) public view returns (address) { + ) public returns (address) { require(false, stub_error); name; description; tokenPrefix; - dummy; + dummy = 0; return 0x0000000000000000000000000000000000000000; } --- a/tests/src/eth/api/CollectionHelpers.sol +++ b/tests/src/eth/api/CollectionHelpers.sol @@ -27,7 +27,7 @@ string memory name, string memory description, string memory tokenPrefix - ) external view returns (address); + ) external returns (address); // Selector: isCollectionExist(address) c3de1494 function isCollectionExist(address collectionAddress) --- a/tests/src/eth/collectionHelpersAbi.json +++ b/tests/src/eth/collectionHelpersAbi.json @@ -26,7 +26,7 @@ ], "name": "createNonfungibleCollection", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, {