Skip to content

Commit

Permalink
fix: don't trigger error for zero id
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Nov 16, 2023
1 parent c74a3a9 commit f0e541e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/identity/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ mod Identity {
#[external(v0)]
impl IdentityImpl of IIdentity<ContractState> {
fn owner_from_id(self: @ContractState, id: u128) -> ContractAddress {
self.erc721._owner_of(u256 { low: id, high: 0 })
self.erc721.ERC721_owners.read(u256 { low: id, high: 0 })
}

fn get_main_id(self: @ContractState, user: ContractAddress) -> u128 {
Expand Down

0 comments on commit f0e541e

Please sign in to comment.