Skip to content

Commit e1d154f

Browse files
committed
updated README.md
1 parent fe25946 commit e1d154f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ There are also a few helper functions to easily deploy the contracts.
2121

2222
```javascript
2323
create(abiDefinition)
24-
deploy(account, gas, contract, code, input=optional)
24+
deploy(account, value, gas, contract, code, input=optional)
2525
```
2626

2727
You can use them to deploy the contract.
2828

2929
```javascript
3030
var contract = create(compiled.SimpleStorage.info.abiDefinition);
31-
var instance = deploy(eth.coinbase, 10000, contract, compiled.SimpleStorage.code,10);
32-
var instance = deploy(eth.coinbase, 10000, contract, compiled.SimpleStorage.code); // if there are no constructor parameters.
31+
var instance = deploy(eth.coinbase, 0, 10000, contract, compiled.SimpleStorage.code,10);
32+
var instance = deploy(eth.coinbase, 10, 10000, contract, compiled.SimpleStorage.code); // if there are no constructor parameters.
3333
```
3434

3535
To call a function in the contract you can use the `callContractFunction` function

0 commit comments

Comments
 (0)