From fcc4d329b96a8ee0b4a8196d85ec033e57bb8382 Mon Sep 17 00:00:00 2001 From: Fedor Sakharov Date: Fri, 29 Sep 2023 10:34:00 +0200 Subject: [PATCH] fix: correct address of l2 ethereum token take 2 (#209) --- withdrawals-meterer/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/withdrawals-meterer/src/lib.rs b/withdrawals-meterer/src/lib.rs index 1fa61bad..54e2b642 100644 --- a/withdrawals-meterer/src/lib.rs +++ b/withdrawals-meterer/src/lib.rs @@ -7,7 +7,7 @@ use std::{collections::HashMap, str::FromStr}; -use client::ETH_TOKEN_ADDRESS; +use client::{ETH_ADDRESS, ETH_TOKEN_ADDRESS}; use ethers::types::Address; use sqlx::PgPool; use storage::StoredWithdrawal; @@ -31,7 +31,7 @@ impl WithdrawalsMeter { pub fn new(pool: PgPool, component_name: &'static str) -> Self { let mut token_decimals = HashMap::new(); - token_decimals.insert(ETH_TOKEN_ADDRESS, (18_u32, ETH_TOKEN_ADDRESS)); + token_decimals.insert(ETH_TOKEN_ADDRESS, (18_u32, ETH_ADDRESS)); metrics::increment_gauge!(format!("{component_name}_token_decimals_stored"), 1.0);