Hot answers tagged

1

Additional to the answer from Kenzo. Looking at the transaction you shared and the state of bsc it seems that you are approving the from transaction. The internal tx fails when it tries to transfer DOBO from 0x8d25c18e2280a05af12c2620388116fb2a72a236 to 0xbe80839a3be4d3953d5588a60a11aeaed286b593. Querying the allowance for this combination returns 0, ...


1

You are approving only 1000 wei of DOBO but trying to swap 10 ether of DOBO (10*10^18). Try changing the 1000 to amountIn in your approve tx.


1

Exposing an RPC from an existing script can be done by calling the node task. Make sure you've setup forking for hardhat in hardhat.config.ts Create a new script file to run at start.js with the code: async function start() { const { run } = require("hardhat"); // deploy your contact here await run("node"); await new Promise(() =>...


Only top voted, non community-wiki answers of a minimum length are eligible