Skip to content

Commit

Permalink
fix: do not error incorrectly on mainnet core (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun authored May 7, 2024
1 parent 729547c commit 8f475f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AxiomV2Addresses.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ library AxiomV2Addresses {
function axiomV2CoreDeployBlock(uint64 chainId) public pure returns (uint256 blockNumber) {
if (chainId == MAINNET_CHAIN_ID) {
blockNumber = AXIOM_V2_CORE_DEPLOY_BLOCK;
}
if (chainId == BASE_CHAIN_ID) {
} else if (chainId == BASE_CHAIN_ID) {
blockNumber = BASE_AXIOM_V2_CORE_DEPLOY_BLOCK;
} else {
revert ContractDoesNotExistForChainId();
Expand Down

0 comments on commit 8f475f1

Please sign in to comment.