Help with contract call overrides please #2151
Unanswered
White-Rabbit-7
asked this question in
Q&A
Replies: 1 comment
-
Does the promise doesn't get resolved or do you get an error, if so can you share that here? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting two values from a tx like so:
console.log(maxFeePerGas);
returns 1500000010I then want to use these later in a seperate contract call with overrides:
I then do a call:
let tx = await contractWithSigner.BuyFunction('0x3e...','0xeb...','50000','10000000000','4',overrides).then((result) => {...
However these overrrides cause the tx to never go through, if I remove the above overrides the contact call works as expected. Also if I add them in manually such as maxFeePerGas: "1450000" it also works as expected, I am sure this is something very simple, so please excuse me for my ignorance I am new to this! It does not like my variables.
I thought perhaps there was an issue as they were a string, so I parseInt()'ed them, but that did not help. I tried hexlify but that also did not help.
Beta Was this translation helpful? Give feedback.
All reactions