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
let balance = provider.get_balance(address).block_id(block_id).into_future();
let nonce = provider.get_transaction_count(address).block_id(block_id).into_future();
let code = provider.get_code_at(address).block_id(block_id).into_future();
in one request
however this isn't supported by all clients, so we need to introduce some kind of
enumGetAccountMode{/// The provider supports `eth_getAccountInfo`EthGetAccountInfo,/// It doesn't support, and we have to fetch balance, nonce, and code concurrentlyAccountCodeNonce,}
and the first time we send an account request we try to also fetch the acc info via eth_getAccountInfo if this doesn't return an error we can use this fn for future requests
TODO
add mode enum
implement this logic, so we need to track the state wich mode should be used in the BackendHandler type
The text was updated successfully, but these errors were encountered:
with alloy-rs/alloy#2402 we have a way to fetch the entire account info which would do these 3 requests
foundry-fork-db/src/backend.rs
Lines 287 to 289 in 676446a
in one request
however this isn't supported by all clients, so we need to introduce some kind of
and the first time we send an account request we try to also fetch the acc info via eth_getAccountInfo if this doesn't return an error we can use this fn for future requests
TODO
The text was updated successfully, but these errors were encountered: