diff --git a/token/src/erc1155/erc1155.cairo b/token/src/erc1155/erc1155.cairo index 11fdb686..678d6eec 100644 --- a/token/src/erc1155/erc1155.cairo +++ b/token/src/erc1155/erc1155.cairo @@ -223,7 +223,11 @@ mod ERC1155 { } fn get_balance(self: @ContractState, account: ContractAddress, id: u256) -> ERC1155Balance { - get!(self.world(), (get_contract_address(), account, TryInto::::try_into(id).unwrap()), ERC1155Balance) + get!( + self.world(), + (get_contract_address(), account, TryInto::::try_into(id).unwrap()), + ERC1155Balance + ) } fn get_operator_approval( @@ -251,7 +255,10 @@ mod ERC1155 { fn set_balance(ref self: ContractState, account: ContractAddress, id: u256, amount: u256) { set!( - self.world(), ERC1155Balance { token: get_contract_address(), account, id: id.try_into().unwrap(), amount } + self.world(), + ERC1155Balance { + token: get_contract_address(), account, id: id.try_into().unwrap(), amount + } ); } diff --git a/token/src/erc721/erc721.cairo b/token/src/erc721/erc721.cairo index cdb5c992..71e2003b 100644 --- a/token/src/erc721/erc721.cairo +++ b/token/src/erc721/erc721.cairo @@ -225,12 +225,19 @@ mod ERC721 { } fn get_owner_of(self: @ContractState, token_id: u256) -> ERC721Owner { - - get!(self.world(), (get_contract_address(), TryInto::::try_into(token_id).unwrap()), ERC721Owner) + get!( + self.world(), + (get_contract_address(), TryInto::::try_into(token_id).unwrap()), + ERC721Owner + ) } fn get_token_approval(self: @ContractState, token_id: u256) -> ERC721TokenApproval { - get!(self.world(), (get_contract_address(), TryInto::::try_into(token_id).unwrap()), ERC721TokenApproval) + get!( + self.world(), + (get_contract_address(), TryInto::::try_into(token_id).unwrap()), + ERC721TokenApproval + ) } fn get_operator_approval( @@ -246,10 +253,13 @@ mod ERC721 { token_id: u256, emit: bool ) { - set!( self.world(), - ERC721TokenApproval { token: get_contract_address(), token_id: token_id.try_into().unwrap(), address: to, } + ERC721TokenApproval { + token: get_contract_address(), + token_id: token_id.try_into().unwrap(), + address: to, + } ); if emit { let approval_event = Approval { owner, approved: to, token_id: token_id }; @@ -281,7 +291,12 @@ mod ERC721 { } fn set_owner(ref self: ContractState, token_id: u256, address: ContractAddress) { - set!(self.world(), ERC721Owner { token: get_contract_address(), token_id: token_id.try_into().unwrap(), address }); + set!( + self.world(), + ERC721Owner { + token: get_contract_address(), token_id: token_id.try_into().unwrap(), address + } + ); } }