Skip to content

Commit

Permalink
chore: reset chain id changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilbe27 committed Oct 31, 2024
1 parent 5146b50 commit e00c2e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions app/appconst/appconst.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ const (
var knownEthChainIDMap = map[string]int64{
"cataclysm-1": 6900,

"nibiru-testnet1": 6910,
"nibiru-testnet2": 6911,
"nibiru-testnet3": 6912,

"nibiru-devnet1": 6920,
"nibiru-devnet2": 6921,
"nibiru-devnet3": 6922,

"nibiru-localnet0": 6930,
"nibiru-localnet1": 6931,
"nibiru-localnet2": 6932,
"nibiru-localnet3": 6933,
"nibiru-testnet-1": 6910,
"nibiru-testnet-2": 6911,
"nibiru-testnet-3": 6912,

"nibiru-devnet-1": 6920,
"nibiru-devnet-2": 6921,
"nibiru-devnet-3": 6922,

"nibiru-localnet-0": 6930,
"nibiru-localnet-1": 6931,
"nibiru-localnet-2": 6932,
"nibiru-localnet-3": 6933,
}

// GetEthChainID: Maps the given chain ID from the block's `sdk.Context` to an
Expand Down
6 changes: 3 additions & 3 deletions app/appconst/appconst_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ func (s *TestSuite) TestGetEthChainID() {
s.Run("localnet", func() {
s.EqualValues(
big.NewInt(appconst.ETH_CHAIN_ID_LOCALNET_0),
appconst.GetEthChainID("nibiru-localnet0"),
appconst.GetEthChainID("nibiru-localnet-0"),
)
})
s.Run("devnet", func() {
want := big.NewInt(appconst.ETH_CHAIN_ID_TESTNET_1)
given := "nibiru-testnet1"
given := "nibiru-testnet-1"
s.EqualValues(want, appconst.GetEthChainID(given))

want = big.NewInt(appconst.ETH_CHAIN_ID_DEVNET_2)
given = "nibiru-devnet2"
given = "nibiru-devnet-2"
s.EqualValues(want, appconst.GetEthChainID(given))
})
s.Run("else", func() {
Expand Down

0 comments on commit e00c2e0

Please sign in to comment.