Skip to content

Commit

Permalink
fix: opbnb module declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
aya015757881 committed Dec 19, 2023
1 parent 12bafde commit 6667abd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions anychain-ethereum/src/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ pub use self::okex::*;
pub mod okex_testnet;
pub use self::okex_testnet::*;

pub mod opbnb;
pub use self::opbnb::*;

pub mod opbnb_testnet;
pub use self::opbnb_testnet::*;

/// The interface for an Ethereum network.
pub trait EthereumNetwork: Network {
const CHAIN_ID: u32;
Expand Down
2 changes: 1 addition & 1 deletion anychain-ethereum/src/network/opbnb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{fmt, str::FromStr};

/// Represents a OpBNB mainnet
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize)]
pub struct Okex;
pub struct OpBnb;

impl Network for OpBnb {
const NAME: &'static str = "op bnb mainnet";
Expand Down

0 comments on commit 6667abd

Please sign in to comment.