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
In the example uniswap_v2_usdc_swap, it creates a type as following:
pub type AlloyCacheDB = CacheDB<WrapDatabaseAsync<AlloyDB<Http, Ethereum, RootProvider<Http>>>>;
I want to follow this approach, however I can't find out how to import WrapDatabaseAsync.
In the example it simples use revm::database_interface::WrapDatabaseAsync. However in my code, database_interface doesn't exist in revm.
My REVM version is 19.3.0.
In the example uniswap_v2_usdc_swap, it creates a type as following:
pub type AlloyCacheDB = CacheDB<WrapDatabaseAsync<AlloyDB<Http, Ethereum, RootProvider<Http>>>>;
I want to follow this approach, however I can't find out how to import WrapDatabaseAsync.
In the example it simples use revm::database_interface::WrapDatabaseAsync. However in my code, database_interface doesn't exist in revm.
My REVM version is 19.3.0.
If I check the documentation, I can see that this is a pub struct. https://bluealloy.github.io/revm/docs/revm_database_interface/async_db/struct.WrapDatabaseAsync.html
Appreciate if anyone could give a help.
The text was updated successfully, but these errors were encountered: