Replies: 1 comment 3 replies
-
When I run your code sample, I get the following output:
Remember that a raw transaction has all of the information from the transaction embedded into it, including the nonce. The transaction is specified with a nonce, and the account has a nonce based off of the block you are forking from. In your example there is a discrepancy between them. If the transaction nonce is greater than the account nonce, the transaction will go into the transaction pool and be executed when the nonce gap is filled. If the transaction nonce is less than the account nonce (which is happening here), Ganache gives an error. If the transaction nonce is equal to the account nonce, the transaction is immediately ready to be executed. For a solution, you can:
await provider.send("evm_setAccountNonce", [
"0x041d4f20857d5667a8ff0165fe5e492089becfb7",
"0x14"
]); |
Beta Was this translation helpful? Give feedback.
-
Hey,
I use ganache in an attempt to simulate an NFT raw transaction:
It looks like the transaction is never started. The only logs I can see are:
Did I miss something in the provider configuration? Can ganache event simulate an NFT transaction?
Beta Was this translation helpful? Give feedback.
All reactions