Skip to content

Commit

Permalink
Fix ownerOf sends an array and not an object
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Aug 29, 2023
1 parent c8b5cd1 commit f8c2e1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const SheetTable = ({ sx }: SheetTableProps) => {
}));
})
.catch((error) => {
console.log(error);
error = true;
finalMessage = `Error: ${chainConfig.appName} cannot render sheet at address ${address}
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export class StarknetWorksheetContract implements WorksheetContract {
}

async ownerOf(tokenId: number): Promise<bigint> {
const result = await this.contract.call("ownerOf", [[tokenId, "0"]]);
const result = await this.contract.call("ownerOf", [
{ low: tokenId, high: 0 },
]);
// @ts-ignore
return result.owner;
}
Expand Down

0 comments on commit f8c2e1c

Please sign in to comment.