我已经开始了伊瑟诺的挑战。我对Goerli上永远挂起的事务有一个问题,下面是链接:https://goerli.etherscan.io/tx/0x93d1d44d7270ec53874751d20ebe65ba2f9c53249562c3e263cb5cb6d01baeae
我不明白的是,我的事务不在挂起的事务的备忘录中:https://goerli.etherscan.io/txsPending
我可能在签约的时候做错什么了?
我正在使用安全帽提交我的事务--这里是我的测试文件:
import { Contract, Signer } from "ethers";
import { ethers } from "hardhat";
import { formatEtherscanTx } from "./utils";
let accounts: Signer[];
let eoa: Signer;
let attacker: Contract;
let challenge: Contract; // challenge contract
let tx: any;
before(async () => {
accounts = await ethers.getSigners();
[eoa] = accounts;
const challengeFactory = await ethers.getContractFactory("Fallback");
challenge = challengeFactory.attach(
`0xA6D6a254309C58273C02CE3D4312151609E977b6`
);
console.log("Initialiazed!");
});
it("solves the challenge", async function () {
console.log("contribute");
tx = await challenge.contribute({
value: ethers.utils.parseUnits(`1`, `wei`),
});
console.log(formatEtherscanTx(tx.hash));
await tx.wait();
console.log("sendTransaction");
tx = await eoa.sendTransaction({
to: challenge.address,
value: ethers.utils.parseUnits(`1`, `wei`),
});
console.log(formatEtherscanTx(tx.hash));
await tx.wait();
console.log("withdraw");
tx = await challenge.withdraw();
console.log(formatEtherscanTx(tx.hash));
await tx.wait();
console.log("withdrawn !");
});硬帽子配置:
networks: {
goerli: {
url: ARCHIVE_URL,
accounts,
gasPrice: 120000000000,
},
hardhat: {
accounts,
forking: {
url: ARCHIVE_URL,
blockNumber: 7760124,
},
},
},用ARCHIVE_URL我的恩弗拉端点。
这里是同样的事务与Gwei自动计算,这仍然是悬而未决的。
发布于 2022-10-26 16:49:04
那些过去花了很长时间。我的建议是将高gasFee (200 Gwei工作得很好)放在testnet上。快乐编码大家
发布于 2023-02-21 08:12:41
我在孟买的交易也一直悬而未决,但这是因为我在和无赖玩。
我发送了一个现在高得多的事务,它被困住了,因为供应商需要依次处理非was。这意味着,如果你的上一次交易时间是9,并且你用11发送了一个新的tx,它就会被卡住,直到发送带有nonce=10的tx为止。
我只想说一句,以防有人也碰到这个问题:)
https://ethereum.stackexchange.com/questions/137409
复制相似问题