From 18cf57a3a09538fb68be203e62a2bb161f121d0c Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 27 Apr 2018 13:54:20 +0200 Subject: [PATCH] fix upper error This script is case sensitive, when uses upper this not found the interface. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48ef2c7..e0c2b94 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Directions: 5. Deploy the contract ``` - abiDefinition = JSON.parse(compiledCode.contracts[':Voting'].interface) + abiDefinition = JSON.parse(compiledCode.contracts[':voting'].interface) VotingContract = web3.eth.contract(abiDefinition) byteCode = compiledCode.contracts[':voting'].bytecode deployedContract = VotingContract.new(['Bill','Tom','Janice'],{data: byteCode, from: web3.eth.accounts[0], gas: 4700000})