Skip to content

Commit

Permalink
chore(appconst): Add chain IDs ending in "3" to the "knownEthChainIDM…
Browse files Browse the repository at this point in the history
…ap". This makes it possible to use devnet 3 and testnet 3. (#1973)

* chore(appconst): Add chain IDs ending in "3" to the "knownEthChainIDMap". This makes it possible to use devnet 3 and testnet 3.

* chore: change log

---------

Co-authored-by: Oleg Nikonychev <[email protected]>
  • Loading branch information
Unique-Divine and onikonychev authored Jul 25, 2024
1 parent 9c927cb commit e35acf2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#1968](https://github.com/NibiruChain/nibiru/pull/1968) - refactor(evm): funtoken events, cli commands and queries
- [#1970](https://github.com/NibiruChain/nibiru/pull/1970) - refactor(evm): move evm antehandlers to separate package. Remove "gosdk/sequence_test.go", which causes a race condition in CI.
- [#1971](https://github.com/NibiruChain/nibiru/pull/1971) - feat(evm): typed events for contract creation, contract execution and transfer
- [#1973](https://github.com/NibiruChain/nibiru/pull/1973) - chore(appconst): Add chain IDs ending in "3" to the "knownEthChainIDMap". This makes it possible to use devnet 3 and testnet 3.

#### Dapp modules: perp, spot, oracle, etc

Expand Down
20 changes: 13 additions & 7 deletions app/appconst/appconst.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,22 @@ const (
)

var knownEthChainIDMap = map[string]int64{
"cataclysm-1": ETH_CHAIN_ID_MAINNET,
"cataclysm-1": ETH_CHAIN_ID_MAINNET,

"nibiru-localnet-0": ETH_CHAIN_ID_LOCAL,
"nibiru-localnet-1": ETH_CHAIN_ID_LOCAL,
"nibiru-localnet-2": ETH_CHAIN_ID_LOCAL,
"nibiru-testnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-localnet-3": ETH_CHAIN_ID_LOCAL,

"nibiru-testnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-3": ETH_CHAIN_ID_DEVNET,

"nibiru-devnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-3": ETH_CHAIN_ID_DEVNET,
}

// GetEthChainID: Maps the given chain ID from the block's `sdk.Context` to an
Expand Down

0 comments on commit e35acf2

Please sign in to comment.