I am trying to call the function "ownerof" of a contract but it return me something like that : 0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000bc641d0c1acc8f85bb53aceade03bbc58de693d1
The function is :
function updateRaceLeaderboard(
uint256 raceID,
uint256[] memory _leaderboard
) public onlyOwner returns (bytes memory addr) {
RaceleaderBoard[raceID] = _leaderboard;
address contractAddress = 0x80AFf21544b6670fCfD813134C83Bb340307c453;
(bool success, bytes memory returndata) = contractAddress.call(
abi.encodeWithSignature("ownerOf(uint256)", 0)
);
return returndata;
}
I call it like that:
dev = accounts.add(config["wallets"]["from_key"])
print("Working on " + network.show_active())
trx = race.updateRaceLeaderboard(
0,
[0],
{"from": dev},
)
The ownerOf(uint256) function is in a different contract at :
https://mumbai.polygonscan.com/address/0x80AFf21544b6670fCfD813134C83Bb340307c453#readContract
The success bool return True
Do you know how Can I receive a correct address ?
ownerOf(uint256)
implementation? Did it succeed? What'ssuccess
value returned? My suspicious is that calee throw an exception.