Skip to content

Commit

Permalink
Update web3-eth-contract.rst, estimateGas options (#1396)
Browse files Browse the repository at this point in the history
the optional parameter 'value' was not mentioned in the options of methods.myMethod.estimateGas(), however it is necessary (and implemented)
  • Loading branch information
nicos99 authored and frozeman committed Mar 13, 2018
1 parent 8a32ce2 commit 54daf21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/web3-eth-contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ Parameters
1. ``options`` - ``Object`` (optional): The options used for calling.
* ``from`` - ``String`` (optional): The address the call "transaction" should be made from.
* ``gas`` - ``Number`` (optional): The maximum gas provided for this call "transaction" (gas limit). Setting a specific value helps to detect out of gas errors. If all gas is used it will return the same number.
* ``value`` - ``Number|String|BN|BigNumber``(optional): The value transferred for the call "transaction" in wei.
2. ``callback`` - ``Function`` (optional): This callback will be fired with the result of the gas estimation as the second argument, or with an error object as the first argument.

-------
Expand Down

0 comments on commit 54daf21

Please sign in to comment.