difftreelog
Merge pull request #417 from UniqueNetwork/bugfix/remove_view
in: master
Remove 'view' from createNonfungibleCollection interface
5 files changed
pallets/unique/src/eth/mod.rsdiffbeforeafterboth48impl<T: Config + pallet_nonfungible::Config> EvmCollectionHelpers<T> {48impl<T: Config + pallet_nonfungible::Config> EvmCollectionHelpers<T> {49 #[weight(<SelfWeightOf<T>>::create_collection())]49 #[weight(<SelfWeightOf<T>>::create_collection())]50 fn create_nonfungible_collection(50 fn create_nonfungible_collection(51 &self,51 &mut self,52 caller: caller,52 caller: caller,53 name: string,53 name: string,54 description: string,54 description: string,pallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterbothbinary blob — no preview
pallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth36 string memory name,36 string memory name,37 string memory description,37 string memory description,38 string memory tokenPrefix38 string memory tokenPrefix39 ) public view returns (address) {39 ) public returns (address) {40 require(false, stub_error);40 require(false, stub_error);41 name;41 name;42 description;42 description;43 tokenPrefix;43 tokenPrefix;44 dummy;44 dummy = 0;45 return 0x0000000000000000000000000000000000000000;45 return 0x0000000000000000000000000000000000000000;46 }46 }4747tests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth27 string memory name,27 string memory name,28 string memory description,28 string memory description,29 string memory tokenPrefix29 string memory tokenPrefix30 ) external view returns (address);30 ) external returns (address);313132 // Selector: isCollectionExist(address) c3de149432 // Selector: isCollectionExist(address) c3de149433 function isCollectionExist(address collectionAddress)33 function isCollectionExist(address collectionAddress)tests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth26 ],26 ],27 "name": "createNonfungibleCollection",27 "name": "createNonfungibleCollection",28 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],28 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],29 "stateMutability": "view",29 "stateMutability": "nonpayable",30 "type": "function"30 "type": "function"31 },31 },32 {32 {