I write a contract and deployed it to babylonnet, address: KT1BcH97ZQas6zKMJBtNdmU4iBvyi2ihpsx8, the entry point is withdraw, parameter is amount, signatures, toAddr, txId(string). I use smartpy explorer to pack parameter, but the explorer doesn't support list of signatures.
So I use tezos-client to invoke contarct, and I format a parameter by myself, but it doesn't work. My invoke command is:
tezos-client transfer 0 from alice to KT1BcH97ZQas6zKMJBtNdmU4iBvyi2ihpsx8 --entrypoint "withdraw" --arg '(Pair (Pair (Pair (Pair 1200000 (edsigtt9FQZSbtLvLx8UVZA1RJ29R7V9WUmmoSBjCcww1Y1pg3aXqWjspCFRc9kJ1MocXV7sMeULWtJuD8XLszQCk4J5FWC5ykh,edsigtpzq77tPRMeK1n9kdUiTroMfvnmGBXiQNib5cpRnAi4tiUReVydHQskB3q4hLvkaxpDYqP7ecUXzc2dR1sAvvYDbMG1idL)) "tz1WfxXzNgcsMrQBV6YHChmyQgNVvfo44ihi") "123123123")'
So what should I do to pack correct invoking parameter? Where is the description document about how to construct parameter?
pair (pair (pair 1200000 "edsigtt9FQZSbtLvLx8UVZA1RJ29R7V9WUmmoSBjCcww1Y1pg3aXqWjspCFRc9kJ1MocXV7sMeULWtJuD8XLszQCk4J5FWC5ykh" "edsigtpzq77tPRMeK1n9kdUiTroMfvnmGBXiQNib5cpRnAi4tiUReVydHQskB3q4hLvkaxpDYqP7ecUXzc2dR1sAvvYDbMG1idL") "tz1WfxXzNgcsMrQBV6YHChmyQgNVvfo44ihi") "123123123"
. But I got another error :Invalid argument passed to contract KT1TPBnfP...xrSxUuskS9. Contract has no entrypoint named withdraw
. I have tried entry point namewithdraw
andWithdraw
. And I am sure that my contract entry point name iswithdraw
. – saiwaixiaowangzi Feb 25 '20 at 7:42