Closed theponpon closed 6 years ago
@theponpon getting the same error
These fields were removed:
recovery: 'eosio', deposit: '0 EOS'}
See newaccount in the README..
Look at the usage for updateauth:
> eos.updateauth()
CONTRACT
eosio
FUNCTION
updateauth
PARAMETERS
{
"account": "account_name",
"permission": "permission_name",
"parent": "permission_name",
"auth": "authority"
}
EXAMPLE
{
"account": "",
"permission": "",
"parent": "",
"auth": {
"threshold": 0,
"keys": [
{
"key": "EOS6MRy..",
"weight": 0
}
],
"accounts": [
{
"permission": {
"actor": "",
"permission": ""
},
"weight": 0
}
],
"waits": [
{
"wait_sec": 0,
"weight": 0
}
]
}
}
By the way, if any array is empty you can omit it ..
"auth" instead of "data"! It works now! I feel stupid! Thanks a lot for helping me find my mistake!
Regards
Pierre
The attached code will produce the following error message:
TypeError: Cannot read property 'threshold' of undefined authority.threshold updateauth.auth action.data transaction.actions index.js:121
test_permissions.txt