go-iost
go-iost copied to clipboard
update contract error
in local server, update error
iwallet --account testuser3 publish --update helloworld.js helloworld.abi ContractEtD1q8XA3qiLmojuY4XfZVXJyMFZbHnwixUucD5DqaGE
Transaction executed err ERROR: running action Action{Contract: system.iost, ActionName: updateCode, Data: ["{"ID":"ContractE6YZDg8YmSFM5hGgcg6t... error: update refused
contract have this function
can_update(data) {
return blockchain.requireAuth(blockchain.contractOwner(), "active");
}
Is 'can_update' in helloworld.abi?
Is 'can_update' in helloworld.abi?
yeah i see it ~
You can paste the js file and abi file here. You can join the slack community for better support: https://iost-community.slack.com