Skip to content

Commit

Permalink
Merge branch 'woof-software/fix-to-no-network' of github.com:woof-sof…
Browse files Browse the repository at this point in the history
…tware/comet into woof-software/add-scroll-weth
  • Loading branch information
MishaShWoof committed Dec 13, 2024
2 parents 16d8736 + e641f95 commit 6a668fa
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default migration('1728096598_configurate_and_ens', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, preMigrationBlockNumber: number) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default migration('1726218459_add_cbbtc_as_collateral', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default migration('1728054806_add_tbtc_collateral', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default migration('1730374657_add_wusdm_collateral', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default migration('1726228702_add_cbbtc_as_collateral', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default migration('1724837643_add_wrseth_as_collateral', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ interface NetworkConfig {
gasPrice?: number | 'auto';
}

export const networkConfigs: NetworkConfig[] = [
const networkConfigs: NetworkConfig[] = [
{
network: 'mainnet',
chainId: 1,
Expand Down
3 changes: 1 addition & 2 deletions plugins/scenario/utils/hreForBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ export async function forkedHreForBase(base: ForkSpec): Promise<HardhatRuntimeEn

// noNetwork otherwise
if(!base.blockNumber)
// base.blockNumber = 17480000;
base.blockNumber = await provider.getBlockNumber() - 210;
base.blockNumber = await provider.getBlockNumber() - 210; // arbitrary number of blocks to go back, about 1 hour

if (!baseNetwork) {
throw new Error(`cannot find network config for network: ${base.network}`);
Expand Down

0 comments on commit 6a668fa

Please sign in to comment.