From f3f2e68e8394fa5b7b0bbe00494ebb181b11fcc0 Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Fri, 3 Nov 2023 19:22:48 +0700 Subject: [PATCH] fix: rename owner_of to owner_from_id to fix incompatibility with erc721 --- src/identity/main.cairo | 2 +- src/interface/identity.cairo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/identity/main.cairo b/src/identity/main.cairo index c49d6c8..bac414c 100644 --- a/src/identity/main.cairo +++ b/src/identity/main.cairo @@ -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) } diff --git a/src/interface/identity.cairo b/src/interface/identity.cairo index efcc4f1..e8d4ad4 100644 --- a/src/interface/identity.cairo +++ b/src/interface/identity.cairo @@ -4,7 +4,7 @@ use starknet::ContractAddress; trait IIdentity { fn tokenURI(self: @TContractState, tokenId: u256) -> Array; - 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;