...
In the geth cli
type the following in order, substituting CREATOR_ABI
and CREATOR_BIN
for the json ABI and binary you generated with solc as per the above steps.
Code Block |
---|
var creator_abi = CREATOR_ABI; |
...
var creator_bin = 'CREATOR_BIN'; |
...
var creatorContract = web3.eth.contract(creator_abi); |
...
var daoCreatorContract = creatorContract.new({from: web3.eth.accounts[0], data: creator_bin, gas: 4000000}); |
In the above you have to make sure that your account web3.eth.accounts[0]
is unlocked and has enough eth. In the command line output you will see something like:
...