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
|
||||
|
||||
```javascript
|
||||
contract.named
|
||||
.callMe
|
||||
.call({ gas: 21000 }, [true, 'someString']) // or estimateGas or sendTransaction
|
||||
contract.instance
|
||||
.myContractMethodName
|
||||
.call({}, [myContractMethodParameter]) // or estimateGas or sendTransaction
|
||||
.then((result) => {
|
||||
console.log(`the result was ${result}`);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user