Closed devon-bfs closed 5 months ago
@ecp4224 Can you confirm whether this requires a documentation update?
This is a bug, no doc updates should be required @alexandratran
I've gone ahead and created a bug report here: MetaMask/metamask-sdk#791 @devon-bfs We should have this fixed in the next version.
TLDR: Contract call is supposed to return an array of BigIntegers but is returning a hex string instead
I have a method on a contract that returns a uint256
The contract backing created by metamask with the contract code generator created this method for it
When called
BigInterger[] result = await contract.WalletOfOwner(MetaMaskUnity.Instance.Wallet.SelectedAddress);
Unity throws the error
It looks like its returning a hash string instead of a array of big integers.
When I convert the function in ContractBacking.cs to return a string and modify the calling code it doesn't return anything