Open rahulrmishra opened 1 year ago
I see you are sending one parameter, while on ABI it asking for two parameters! Check your parameters and make sure your data type is right
@MahmoudKEA Are you sure? Because the ABI is defining only one input and that is of type struct TradeLib.FinalizePurchase
which has only one property, I think that is what is causing the problem, Can you guide on how we can encode solidity structs in Flutter side?
@rahulrmishra Try to put the purchaseModel.nftSigner
inside another braces :
parameters: [[purchaseModel.nftSigner]],
First list for parameters, second list for Solidity struct, Looks like Solidity structs are passed as list for encoding, And their properties are the items in this list (Priority should be important).
This is my abi json file
I'm calling a smart contraction method
I'm getting error ->