Skip to content

Commit

Permalink
fix: eth address not defined in sepolia and sepolia-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Dec 21, 2023
1 parent 49b25f9 commit 77da8e7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/address_book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ use std::cell::OnceCell;
use anyhow::Result;
use starknet::{
core::{chain_id, types::FieldElement},
macros::felt,
macros::{felt, short_string},
};

use crate::chain_id::ChainIdSource;

const CHAIN_ID_KATANA: FieldElement = felt!("0x4b4154414e41");

pub const HARDCODED_ADDRESS_BOOK: [AddressBookEntry; 5] = [
pub const HARDCODED_ADDRESS_BOOK: [AddressBookEntry; 6] = [
AddressBookEntry {
chain_id: chain_id::MAINNET,
name: "eth",
Expand All @@ -24,7 +24,12 @@ pub const HARDCODED_ADDRESS_BOOK: [AddressBookEntry; 5] = [
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
AddressBookEntry {
chain_id: chain_id::TESTNET2,
chain_id: short_string!("SN_SEPOLIA"),
name: "eth",
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
AddressBookEntry {
chain_id: short_string!("SN_INTEGRATION_SEPOLIA"),
name: "eth",
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
Expand Down

0 comments on commit 77da8e7

Please sign in to comment.