Updated docs slightly. (#5674)

These docs _really_ need a lot of improvement (like what are the options that go in `{}`, but at least they are now not outright incorrect.
This commit is contained in:
Micah Zoltu 2017-05-23 05:37:27 -07:00 committed by Gav Wood
parent 53add78a28
commit 2092b805b6

View File

@ -109,9 +109,9 @@ contract.at('0xa9280...7347b');
find & call a function find & call a function
```javascript ```javascript
contract.named contract.instance
.callMe .myContractMethodName
.call({ gas: 21000 }, [true, 'someString']) // or estimateGas or sendTransaction .call({}, [myContractMethodParameter]) // or estimateGas or sendTransaction
.then((result) => { .then((result) => {
console.log(`the result was ${result}`); console.log(`the result was ${result}`);
}); });