git.delta.rocks / unique-network / refs/commits / 65f94fd4f852

difftreelog

fix remove gas consuption

Trubnikov Sergey2022-08-26parent: #942486a.patch.diff
in: master

1 file changed

modifiedpallets/refungible/src/erc_token.rsdiffbeforeafterboth
50#[solidity_interface(name = ERC1633)]50#[solidity_interface(name = ERC1633)]
51impl<T: Config> RefungibleTokenHandle<T> {51impl<T: Config> RefungibleTokenHandle<T> {
52 fn parent_token(&self) -> Result<address> {52 fn parent_token(&self) -> Result<address> {
53 self.consume_store_reads(2)?;
54 Ok(collection_id_to_address(self.id))53 Ok(collection_id_to_address(self.id))
55 }54 }
5655
57 fn parent_token_id(&self) -> Result<uint256> {56 fn parent_token_id(&self) -> Result<uint256> {
58 self.consume_store_reads(2)?;
59 Ok(self.1.into())57 Ok(self.1.into())
60 }58 }
61}59}