Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add permission using auth.iost #1118

Open
takaowada opened this issue Oct 5, 2019 · 1 comment
Open

Can't add permission using auth.iost #1118

takaowada opened this issue Oct 5, 2019 · 1 comment

Comments

@takaowada
Copy link

Uncaught exception when attempting to create an account without enough balance

To create

iwallet sys addperm transfer 100 -a test1 -s localhost:30002 --chain_id 1020
Transaction receipt:
{
"txHash": "Ex2EgkfhRjVFwF1owcTuDynoTWY9yuYKGfTDJX4ueLbX",
"gasUsage": 33792,
"ramUsage": {
},
"statusCode": "RUNTIME_ERROR",
"message": "running action Action{Contract: auth.iost, ActionName: addPermission, Data: ["test1","transfer",100]}\n error: Uncaught exception: Error: require auth failed\nat _default_name.js:58:48\n _IOSTInstruction_counter.incr(61.9);throw new Error('require auth failed');\n ^\nStack tree: \nError: require auth failed",
"returns": [
],
"receipts": [
]
}
Transaction executed err
ERROR: running action Action{Contract: auth.iost, ActionName: addPermission, Data: ["test1","transfer",100]}
error: Uncaught exception: Error: require auth failed
at _default_name.js:58:48
_IOSTInstruction_counter.incr(61.9);throw new Error('require auth failed');
^
Stack tree:
Error: require auth failed

This should be handled gracefully

@ziranliu
Copy link
Contributor

ziranliu commented Oct 8, 2019

Add --signers=test1@owner to your command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants