Skip to content

Commit 9e607e9

Browse files
committed
updated readme
1 parent 008109a commit 9e607e9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Paste this statement into the geth console. Your code will be loaded and your co
1818
There are also a few helper functions to easily deploy the contracts.
1919

2020
```javascript
21-
create(abiDefinition)
22-
deploy(account, value, gas, contract, code, input=optional)
21+
create(abiDefinition);
22+
deploy(account, value, gas, contract, code, input=optional);
2323
```
2424

2525
You can use them to deploy the contract.
@@ -33,7 +33,10 @@ var instance = deploy(eth.coinbase, 10, 10000, contract, compiled.SimpleStorage.
3333
To call a function in the contract you can use the `call` function
3434

3535
```javascript
36-
call(account, gas, contractInstance.function, input)
36+
call(accountIndex, gas, contractInstance.function, input);
37+
38+
//For example to call using ether from eth.accounts[1]
39+
call(1, 100000, multiplier.multiply, 1, 2)A;
3740
```
3841

3942
To watch an event you can use the watcher function.
@@ -46,7 +49,7 @@ The script will also printout the gas estimates when you try to compile.
4649

4750
To send some ether from your account to another. You can use `send` function
4851
```javascript
49-
send(accountIndex, toAccount, valueInEther, gas)
52+
send(accountIndex, toAccount, valueInEther, gas);
5053

5154
//For example to send some ether from eth.accounts[2]
5255
send(2, '0xb8290f9757b5c9daa11a8016d663829af812fc0e', 10, 30000);

0 commit comments

Comments
 (0)