Testing pending transaction to be replaced #5857
Unanswered
dibi91
asked this question in
General Q&A
Replies: 0 comments
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.
-
Hi all,
I'm currently using the ganache package in a node js project to write some tests.
I need to reproduce a pending transaction (for example, when a submitted ethereum transaction has a low gas price) that should be replaced by another one (same nonce, greater max fee per gas and different data) but cannot find a way to do it.
How can I send a transaction that need to be pending in a test environment?
Those are the configurations used to start the blockchain before tests:
To send the transactions, I'm using ethers js (v5.7.2), signing them with private key and send them to ganache via "eth_sendRawTransaction"
Thanks
Beta Was this translation helpful? Give feedback.
All reactions