Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bridgerz committed Sep 21, 2024
1 parent fdf17fb commit 71da6f1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/sui-bridge-indexer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,14 @@ async fn main() -> Result<()> {
Provider::<Http>::try_from(&config.eth_rpc_url)?
.interval(std::time::Duration::from_millis(2000)),
);
let _bridge_addresses = get_eth_contract_addresses(bridge_address, &provider).await?;
let bridge_addresses = get_eth_contract_addresses(bridge_address, &provider).await?;
let bridge_addresses: Vec<EthAddress> = vec![
_bridge_addresses.0,
_bridge_addresses.1,
_bridge_addresses.2,
_bridge_addresses.3,
bridge_addresses.0,
bridge_addresses.1,
bridge_addresses.2,
bridge_addresses.3,
];

println!("Bridge addresses: {:?}", bridge_addresses);

// Start the eth subscription indexer
let eth_subscription_datasource = EthSubscriptionDatasource::new(
bridge_addresses.clone(),
Expand Down

0 comments on commit 71da6f1

Please sign in to comment.