Closed tvrc4m closed 5 years ago
If a function of contract takes user's token, you have to declare amount limit in the abi, just like: https://github.com/iost-official/go-iost/blob/master/config/genesis/contract/vote_producer.js.abi#L108
@ziranliu thanks you. it's ok how auto generate it ? "amountLimit": [{ "token": "iost", "val": "unlimited" }],
@ziranliu thanks you. it's ok how auto generate it ? "amountLimit": [{ "token": "iost", "val": "unlimited" }],
You have to add it in abi manually
ok. and iost support delay transaction?
ok. and iost support delay transaction?
no
call deposit in contract. blockchain.deposit(player, _betAmount, "bet")
Transaction has been sent. The transaction hash is: 2aHJ4FDGPa7vZA1XYKi6hMgF5mSGwHgeaL84hZphhQaP Checking transaction receipt... Transaction receipt: { "txHash": "2aHJ4FDGPa7vZA1XYKi6hMgF5mSGwHgeaL84hZphhQaP", "gasUsage": 56841, "ramUsage": { }, "statusCode": "RUNTIME_ERROR", "message": "running action Action{Contract: ContractCVxupPS8NQTrNZ97kT71gGvCZU4F5edkdYjoSPgcfeV2, ActionName: bet, Data: [\"game... error: token iost exceed amountLimit in abi. need 10", "returns": [ ], "receipts": [ ] } Transaction executed err