git.delta.rocks / unique-network / refs/commits / e82bbde54078

difftreelog

Merge pull request #417 from UniqueNetwork/bugfix/remove_view

kozyrevdev2022-07-05parents: #a7e0a81 #05906c7.patch.diff
in: master
Remove 'view' from createNonfungibleCollection interface

5 files changed

modifiedpallets/unique/src/eth/mod.rsdiffbeforeafterboth
48impl<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,
modifiedpallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth
36 string memory name,36 string memory name,
37 string memory description,37 string memory description,
38 string memory tokenPrefix38 string memory tokenPrefix
39 ) 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 }
4747
modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth
27 string memory name,27 string memory name,
28 string memory description,28 string memory description,
29 string memory tokenPrefix29 string memory tokenPrefix
30 ) external view returns (address);30 ) external returns (address);
3131
32 // Selector: isCollectionExist(address) c3de149432 // Selector: isCollectionExist(address) c3de1494
33 function isCollectionExist(address collectionAddress)33 function isCollectionExist(address collectionAddress)
modifiedtests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth
26 ],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 {