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:
parent
53add78a28
commit
2092b805b6
@ -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}`);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user