Replies: 2 comments 1 reply
-
|
Hard to tell what is going on from that code snippet. Can you please provide a minimal reproducible example via a CodeSandbox or a separate repository so we can have a closer look? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I just had the same issue and managed to solve it by manually setting gasLimit this way: Check out the |
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.
-
Here is the method to call
`try {
const config = await prepareWriteContract({
address: myRouterContractAddr,
abi: require("@/abi/fengshu.json"),
functionName: 'fastSell',
args: [pancakeContractAddr, _this.tokenContractAddr, lpContractChecksumAddr, exchangeAmount],
})
const data = await writeContract(config)
this.successHash = data.hash
let hash = data.hash
const waitdata = await waitForTransaction({
hash
})
Please tell me how to modify this code to solve the problem of error
Beta Was this translation helpful? Give feedback.
All reactions