Open zt-9 opened 1 year ago
let nonce_nm = NonceManagerMiddleware::new(provider, tx_signer_address).next();
at this point, the nonce is not initialized yet.
See fn initialize_nonce
The docs are not great here...
imo next
should be made private
maybe the fill_transaction()
does not fill correct nonce to tx bc of this. this is the code from the ethers_flashbots example
https://github.com/onbjerg/ethers-flashbots/blob/57bd555f7533581c09b363a5b4c19bb130d7dd9d/examples/advanced.rs#L32-L35
sorry, I don't understand how this is related
sorry, I don't understand how this is related
ohh probably some unrelated issue here.fill_transaction()
can now fill the correct nonce for me suddenly
Version
Platform MacOS 13.1 (22C65) M1
Description NonceManagerMiddleware always returns zero nonce.
However, I can only get the correct nonce with the
get_transaction_count
fromethers