Browse Source

[+Rylan] Tweak readme bit about deploying contracts

Andrei Biasprozvanny 2 years ago
parent
commit
0899b7064d
1 changed files with 8 additions and 1 deletions
  1. 8 1
      ethereum-private/README.md

+ 8 - 1
ethereum-private/README.md

@@ -145,7 +145,14 @@ Contract mined! address: 0x3c96ce5b6760fc61c22f922514f98bed61172f14 transactionH
145 145
 ```
146 146
 
147 147
 Note down the contract address as it will be handy to find it again in the future.
148
-Now in the console you can interact with the functions available in the contract:
148
+
149
+Assign the contract object to a variable.
150
+
151
+```
152
+var greeter = web3.eth.contract(add the contract ABI).at(add the contract hash address as a string)
153
+```
154
+
155
+Now in the console you can interact with the functions available in the contract via the variable created:
149 156
 
150 157
 ```
151 158
 > greeter.greet()