These are chat archives for ethereum/homestead-guide

23rd
Mar 2016
Omkara
@0mkara
Mar 23 2016 21:22

Hey I am trying to compile and deploy a contract as described here http://ethdocs.org/en/latest/contracts-and-transactions/contracts.html#create-and-deploy-a-contract
After executing commands in following order I get

> source = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"
> contract = eth.compile.solidity(source).test
> primaryAddress = eth.accounts[0]
> MyContract = eth.contract(abi);
ReferenceError: 'abi' is not defined
    at <anonymous>:1:27

MyContract = eth.contract(abi); gives me ReferenceError: 'abi' is not defined What is wrong ?