Skip to content

Commit f580c94

Browse files
committed
Renamed a method
1 parent 8f8b515 commit f580c94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

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

2222
```javascript
2323
createContract(abiDefinition)
24-
getContractInstance(contract, input, account, code, gas)
24+
deployContract(contract, input, account, code, gas)
2525
```
2626

2727
You can use them to deploy the contract.
2828

2929
```javascript
3030
var contract = createContract(compiled.SimpleStorage.info.abiDefinition);
31-
var instance = getContractInstance(contract, 10, eth.coinbase, compiled.SimpleStorage.code,10000);
31+
var instance = deployContract(contract, 10, eth.coinbase, compiled.SimpleStorage.code,10000);
3232
```

solc_helper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'json'
44

5-
library_code = 'function createContract(abiDefinition) { return web3.eth.contract(abiDefinition);}function getContractInstance(contract, input, account, code, gas) { var instance = contract.new(input,{from:account, data: code, gas: gas}, function (e, contract) { if(!e) { if(!contract.address) { console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined..."); } else { console.log("Contract mined! Address: " + contract.address); console.log(contract); } } else { console.log(e) } }); return instance;}
5+
library_code = 'function createContract(abiDefinition) { return web3.eth.contract(abiDefinition);}function deployContract(contract, input, account, code, gas) { var instance = contract.new(input,{from:account, data: code, gas: gas}, function (e, contract) { if(!e) { if(!contract.address) { console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined..."); } else { console.log("Contract mined! Address: " + contract.address); console.log(contract); } } else { console.log(e) } }); return instance;}
66
'
77
file_name = ARGV[0]
88
code = File.read(file_name).gsub("\n",'')

0 commit comments

Comments
 (0)