Skip to content

Commit

Permalink
fixup! fix: fixed opmainnet and zksyncmainnet simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
chechu committed Dec 14, 2024
1 parent 4d64e26 commit fefcc63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hardhat.config.zksync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const config: HardhatUserConfig = {
},
zksynctestnode: {
url: process.env.ZKSYNC_ERA_LOCAL_TEST_NODE || "http://localhost:8011",
chainId: 324, // change it to 324 for zksyncmainnet
chainId: 300, // change it to 324 for zksyncmainnet
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
blockGasLimit: BLOCK_GAS_LIMIT_PER_NETWORK.zksyncsepolia,
timeout: 2000000000,
Expand Down
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ export const setMaxStalePeriod = async (
FORKED_NETWORK == "opmainnet" ||
FORKED_NETWORK == "opsepolia" ||
FORKED_NETWORK == "zksyncmainnet" ||
FORKED_NETWORK == "zksyncsepolia"
FORKED_NETWORK == "zksyncsepolia" ||
FORKED_NETWORK == "basemainnet" ||
FORKED_NETWORK == "basesepolia"
? getForkedNetworkAddress("NORMAL_TIMELOCK")
: getForkedNetworkAddress("GUARDIAN");
const tokenConfig: TokenConfig = await resilientOracle.getTokenConfig(underlyingAsset.address);
Expand Down
1 change: 0 additions & 1 deletion type-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ declare module "hardhat/types/runtime" {
FORKED_NETWORK?:
| "bsctestnet"
| "bscmainnet"
| "basesepolia"
| "sepolia"
| "ethereum"
| "opbnbtestnet"
Expand Down

0 comments on commit fefcc63

Please sign in to comment.