Skip to content

Commit

Permalink
sync with base
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Aug 19, 2024
2 parents 63760c8 + 6d62682 commit eee0b54
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions core/tests/loadnext/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,17 @@ impl Executor {
let pool = AccountPool::new(&config).await?;

// derive L2 main token address
let l2_native_token_vault = pool
let l2_shared_default_bridge = pool
.master_wallet
.provider
.get_native_token_vault_proxy_addr()
.get_bridge_contracts()
.await?
.l2_shared_default_bridge
.unwrap();
let abi = load_contract(L2_SHARED_BRIDGE_ABI);
let query_client: Client<L2> = Client::http(config.l2_rpc_address.parse()?)?.build();
let l2_main_token = CallFunctionArgs::new("l2TokenAddress", (config.main_token,))
.for_contract(l2_native_token_vault, &abi)
.for_contract(l2_shared_default_bridge, &abi)
.call(&query_client)
.await?;

Expand Down Expand Up @@ -413,6 +414,9 @@ impl Executor {
eth_txs.push(res);
}

println!("{:#?} -- ", self.config.main_token);
println!("{:#?} -- ", self.l2_main_token);

let ethereum_erc20_balance = ethereum
.erc20_balance(target_address, self.config.main_token)
.await?;
Expand Down
4 changes: 3 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = []
ignore = [
"RUSTSEC-2024-0363", # allows [email protected] until fix is released, more here -- https://github.com/launchbadge/sqlx/issues/3440
]

[licenses]
unlicensed = "deny"
Expand Down

0 comments on commit eee0b54

Please sign in to comment.