layout | title | date |
---|---|---|
post |
contract creation golf |
2018-02-22 17:33 |
Fun little learning exercise, what's the shortest bytecode you can send that will publish a contract with non-zero bytecode? The response to getCode()
should have some characters that aren’t either 0
or x
.
To test it out:
web3.eth.sendTransaction({data:'BYTECODE', from:web3.eth.accounts[0]});
web3.eth.getCode('THE_ADDRESS');