iost-official / go-iost

Official Go implementation of the IOST blockchain
https://developers.iost.io/
GNU Lesser General Public License v3.0
565 stars 112 forks source link

update contract error #992

Open goPercy opened 5 years ago

goPercy commented 5 years ago

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");
         }
lispc commented 5 years ago

Is 'can_update' in helloworld.abi?

goPercy commented 5 years ago

Is 'can_update' in helloworld.abi?

yeah i see it ~

lispc commented 5 years ago

You can paste the js file and abi file here. You can join the slack community for better support: https://iost-community.slack.com