How to set gas price / gas limit for contract function without parameters #1452
Answered
by
zemse
onemanking
asked this question in
Q&A
-
Smart contract function does not receive any parameters and I want to set up gas limit and gas price before send. here is my code
also this
and this
Can somebody help me with this? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
zemse
Apr 10, 2021
Replies: 2 comments 5 replies
-
The third one should work. Relevant docs: if a contract function takes contractWithSigner.reinvest({ gasLimit: gasLimit, gasPrice: gasPrice }); |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ricmoo
-
Hey Man,yes its an arbitrage bot,I m just checking out a VScode tutorial on
Node.js and Debugging.Could that be helpful in getting this to run?Thanks
…On Thu, Sep 16, 2021 at 4:21 PM soham ***@***.***> wrote:
@Centori <https://github.com/Centori> that's a lot of code to execute in
my head xD. But looking at the error Cannot read property 'toHexString'
of undefined it seems there is a typo somewhere in the code (like
obj.incoerctPropName) which is being passed somewhere. Do you get a stack
trace? It allows to pin point the line number where you can look for.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1452 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCW2QSC2RXKSXHXDU74JO3UCIDQFANCNFSM42ZO35VQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The third one should work. Relevant docs: if a contract function takes
n
arguments, then then+1
th arg can be optionally passed as the overrides object.