Skip to content

How to set gas price / gas limit for contract function without parameters #1452

Answered by zemse
onemanking asked this question in Q&A
Discussion options

You must be logged in to vote

The third one should work. Relevant docs: if a contract function takes n arguments, then the n+1th arg can be optionally passed as the overrides object.

contractWithSigner.reinvest({ gasLimit: gasLimit, gasPrice: gasPrice });

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@onemanking
Comment options

@Centori
Comment options

@zemse
Comment options

zemse Sep 9, 2021
Collaborator

@Centori
Comment options

@zemse
Comment options

zemse Sep 16, 2021
Collaborator

Answer selected by ricmoo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1448 on April 10, 2021 23:45.