go-iost icon indicating copy to clipboard operation
go-iost copied to clipboard

update contract error

Open goPercy opened this issue 5 years ago • 3 comments

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");
	     }

goPercy avatar Mar 26 '19 08:03 goPercy

Is 'can_update' in helloworld.abi?

lispc avatar Mar 26 '19 09:03 lispc

Is 'can_update' in helloworld.abi?

yeah i see it ~

goPercy avatar Mar 26 '19 09:03 goPercy

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

lispc avatar Mar 26 '19 10:03 lispc