You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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