Reputation: 492
I am using tondev and trying to call the function with payload param:
tondev contract run Wallet sendTransaction --input "dest: 0x5074b87aa1ece77b28f652ccd43db00b83c20da606529d2fdf7bb0f4ce9704a3, payload: te6ccgEBAQEABgAACETLeAA="
And got the error:
Error: Param params (tuple) expect name at "...0f4ce9704a3, -> payload: te..."
What is wrong?
Upvotes: 1
Views: 94
Reputation: 182
Three problems:
0x
After these changes you should have the following command which works:
tondev c r Wallet sendTransaction -i dest:5074b87aa1ece77b28f652ccd43db00b83c20da606529d2fdf7bb0f4ce9704a3,payload:te6ccgEBAQEABgAACETLeAA=
Upvotes: 1
Reputation: 492
I found out these errors:
This is correct version:
tondev contract run Wallet sendTransaction --input "dest:5074b87aa1ece77b28f652ccd43db00b83c20da606529d2fdf7bb0f4ce9704a3,payload:te6ccgEBAQEABgAACETLeAA="
In bash script, with variables:
tondev contract run Wallet sendTransaction --input "dest:$RandomAddress,payload:$payload"
Upvotes: 1