delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
45 stars 18 forks source link

Fixing setting nonce in agent0 #1551

Closed slundqui closed 2 weeks ago

slundqui commented 2 weeks ago

Using eth_transaction_count should be querying the pending block, not latest block to set nonce. This allows a single account to send multiple transactions on the same block with proper nonce setting.

This matches default web3py behavior.