-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Transaction dropped from memory pool" when transaction is successful on-chain #3880
Comments
Same behaviour, foundryup: installed - forge 0.2.0 (8c4294c 2022-12-22T00:03:55.083004205Z) I'm deploying 5 contracts, only the last 2 or 3 tx are incorrectly flagged as dropped (and have no receipt in the broadcast json) @aliceho if needed, for me, this consistently happened with Infura -> changing rpc provider (Ankr) fixed it! |
Also running into this on Optimism and Optimism Goerli on latest foundry. For N transactions I need to run the script N times. Wonder if it's due to fast block times? |
I am having the same issue on fuji testnet, exactly as described by @aliceho. I have also tried with Sending only 1 tx per It seems like the dropped tx always goes thru (in N transactions the very first one seems to always go thru) but my main problem is the verification. It directly fails in a dropped tx scenario and manually verifying (even with forge verify-contract) is quite tedious work. |
fixed by #4010 |
@joshieDo I still got the error. Here's the error says: Transactions saved to: /home/rizary/smart-contract/broadcast/Deploy.s.sol/80001/run-latest.json
Error:
Transaction dropped from the mempool: 0xc6a1f6cec634ad525bd75c916224fb594621113235b5c276c6f8dc5977b1a1e3 here's my Deploy.s.sol script pragma solidity ^0.8.15;
import "forge-std/Script.sol";
import "../src/1.0/FractionalizedNFT.sol";
import "../src/1.0/FractionToken.sol";
import "../src/1.0/SoonanTsoorNFT.sol";
import "../src/1.0/StakingFractionNFT.sol";
contract Deploy is Script {
address public fractionalizedNFT;
address public fractionToken;
address public soonanTsoorNFT;
address public stakingFractionNFT;
address public USDCAddress;
constructor() Script() {
}
function run() external {
USDCAddress = vm.envAddress("USDC_ADDRESS");
vm.startBroadcast();
// deploy SoonanTsoorNFT contract
SoonanTsoorNFT soonanTsoorNFTContract = new SoonanTsoorNFT(USDCAddress);
soonanTsoorNFT = address(soonanTsoorNFTContract);
FractionToken fractionTokenContract = new FractionToken();
fractionToken = address(fractionTokenContract);
// deploy FractionalizedNFT contract
FractionalizedNFT fractionalizedNFTContract = new FractionalizedNFT(fractionToken, soonanTsoorNFT, USDCAddress);
fractionalizedNFT = address(fractionalizedNFTContract);
// deploy StakingFractionNFT contract
StakingFractionNFT stakingFractionNFTContract = new StakingFractionNFT();
stakingFractionNFT = address(stakingFractionNFTContract);
vm.stopBroadcast();
}
} |
…nix hook (#777) * Refactor: move to initialize hook & some cleanup * Fix husky * Update foundry libs with submodule * env for goerli * Fix for production deployment * Suppress error temporarily when init BeefyClient for foundry-rs/foundry#3880 * More refactor for comments * For goerli e2e setup * Fix: for both local&goerli setup * More fixes * Fix for comments * Cleanup * Improve e2e scripts * Fix for comments
This sucks, it is not helping |
Still facing this on |
Still facing this on forge 0.2.0 (e5318c3 2024-03-21T00:17:26.798143000Z) on the zircuit testnet. |
same error |
Same issue with forge 0.2.0 on Holesky |
getting also this lately in Holesky or Sepolia testnets, foundry outputs the error but is actually confirmed on-chain |
I have observed this issue as well. Some notes:
I'd wager that some upstream library (used by some RPC providers, but not all) is formatting the response in a way that forge is unable to recognize as success. But that's a shot in the dark; unfortunately I'm unable to dig any deeper at this time. |
@intoverflow It depends on RPC providers. In my case, i encountered the error when foundry received For more, check codes. |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
0.2.0
What command(s) is the bug in?
forge script forge-scripts/deploy_contracts.sol \ --rpc-url $RPC \ --private-key $PRIVATE_KEY \ --broadcast
Operating System
macOS (Apple Silicon)
Describe the bug
while running the command the error received is :
Transaction dropped from the mempool: 0xaa6d6cf356d14eaed26585cdacc143087a7b2271cb03b1a845554ad91a7ea88b
Transaction dropped from the mempool: 0x9711633969b6cc81a9983c44db9c09e4d2aae2c2e68b31af20e849a76c74aedb
But when checked on https://testnet.snowtrace.io/ these transaction hash show successful transaction.
And after the script is updated to "forge script forge-scripts/deploy_contracts.sol
--rpc-url $RPC
--private-key $PRIVATE_KEY
--broadcast --resume" to resume the transaction the error received is (code: -32000, message: nonce too low: address 0xC470686e8cb845246DCDF5BCcAf509883A4859AE current nonce (7) > tx nonce (6), data: None)
The text was updated successfully, but these errors were encountered: