Skip to content

Commit 1ed1f1f

Browse files
committed
Updated README.md
1 parent 5581a3e commit 1ed1f1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

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

2222
```javascript
2323
create(abiDefinition)
24-
deploy(contract, input, account, code, gas)
24+
deploy(account, 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(contract, 10, eth.coinbase, compiled.SimpleStorage.code,10000);
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.
3233
```
3334

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

0 commit comments

Comments
 (0)