let provider = new ethers.providers.JsonRpcProvider("..."); let wallet = initMnemonicWallet(provider); let contractIns = new ethers.Contract(routerAddr, Abi, provider);
let contractSinger = contractIns.connect(wallet);
contractSinger.swap();
老师上面是您上回的回复,可是调用时需要设置"gasPrice":{},"nonce":{},"gasLimit":{},"chainId":{}等参数 是同步调用函数时进行设置还是调用前统一进行设置,设置这个的相关代码麻烦给一下,老师辛苦了