Skip to content

Commit

Permalink
fix: rename owner_of to owner_from_id to fix incompatibility with erc721
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Nov 3, 2023
1 parent f20895c commit f3f2e68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/identity/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mod Identity {
self.custom_uri.get_uri(tokenId)
}

fn owner_of(self: @ContractState, id: u128) -> ContractAddress {
fn owner_from_id(self: @ContractState, id: u128) -> ContractAddress {
// todo: when components are ready, use ERC721
self.owner_by_id.read(id)
}
Expand Down
2 changes: 1 addition & 1 deletion src/interface/identity.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use starknet::ContractAddress;
trait IIdentity<TContractState> {
fn tokenURI(self: @TContractState, tokenId: u256) -> Array<felt252>;

fn owner_of(self: @TContractState, id: u128) -> ContractAddress;
fn owner_from_id(self: @TContractState, id: u128) -> ContractAddress;

fn get_user_data(self: @TContractState, id: u128, field: felt252, domain: u32) -> felt252;

Expand Down

0 comments on commit f3f2e68

Please sign in to comment.