EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

Ability to delete abi and code #2618

Closed jcalfee closed 5 years ago

jcalfee commented 6 years ago

The following would allow users to remove code and or abi:

Make the last parameter "optional" so a null value can be provided:

// remove contract from the blockchain
eos.setcode('currency', 0, 0, null/*wasm*/)
eos.setabi('currency', null /*abi*/)
xJonathanLEI commented 6 years ago

With eosjs, the following code should do the trick:

eos.setcode(account_name, 0, 0, new Uint8Array());
hama commented 6 years ago

how to use cleos ?

betdiceone commented 6 years ago

With eosjs, the following code should do the trick:

eos.setcode(account_name, 0, 0, new Uint8Array());

So how to remove abi?

brianjohnson5972 commented 5 years ago

This was provided by #5442