From 34c9bf209e70b5a2a33f1be3467013032918a9f3 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Tue, 18 May 2021 10:40:22 +0200 Subject: [PATCH] fix: Fix typo of tenderlyRPC for tenderlyNetwork --- helpers/tenderly-utils.ts | 2 +- tasks/full/2_lending_pool.ts | 2 +- tasks/full/3_oracles.ts | 2 +- tasks/migrations/aave.mainnet.ts | 4 ++-- tasks/migrations/amm.mainnet.ts | 4 ++-- tasks/migrations/sidechain.mainnet.ts | 4 ++-- test-suites/test-aave/helpers/make-suite.ts | 4 ++-- test-suites/test-amm/helpers/make-suite.ts | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/helpers/tenderly-utils.ts b/helpers/tenderly-utils.ts index e561b11d..7ef22252 100644 --- a/helpers/tenderly-utils.ts +++ b/helpers/tenderly-utils.ts @@ -9,7 +9,7 @@ export const usingTenderly = () => export const verifyAtTenderly = async (id: string, instance: Contract) => { console.log('\n- Doing Tenderly contract verification of', id); - await (DRE as any).tenderlyRPC.verify({ + await (DRE as any).tenderlyNetwork.verify({ name: id, address: instance.address, }); diff --git a/tasks/full/2_lending_pool.ts b/tasks/full/2_lending_pool.ts index 1d7a9b4a..e318846e 100644 --- a/tasks/full/2_lending_pool.ts +++ b/tasks/full/2_lending_pool.ts @@ -82,7 +82,7 @@ task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment') if (DRE.network.name.includes('tenderly')) { const transactionLink = `https://dashboard.tenderly.co/${DRE.config.tenderly.username}/${ DRE.config.tenderly.project - }/fork/${DRE.tenderlyRPC.getFork()}/simulation/${DRE.tenderlyRPC.getHead()}`; + }/fork/${DRE.tenderlyNetwork.getFork()}/simulation/${DRE.tenderlyNetwork.getHead()}`; console.error('Check tx error:', transactionLink); } throw error; diff --git a/tasks/full/3_oracles.ts b/tasks/full/3_oracles.ts index 3346ebd4..df06f34c 100644 --- a/tasks/full/3_oracles.ts +++ b/tasks/full/3_oracles.ts @@ -84,7 +84,7 @@ task('full:deploy-oracles', 'Deploy oracles for dev enviroment') if (DRE.network.name.includes('tenderly')) { const transactionLink = `https://dashboard.tenderly.co/${DRE.config.tenderly.username}/${ DRE.config.tenderly.project - }/fork/${DRE.tenderlyRPC.getFork()}/simulation/${DRE.tenderlyRPC.getHead()}`; + }/fork/${DRE.tenderlyNetwork.getFork()}/simulation/${DRE.tenderlyNetwork.getHead()}`; console.error('Check tx error:', transactionLink); } throw error; diff --git a/tasks/migrations/aave.mainnet.ts b/tasks/migrations/aave.mainnet.ts index b5b39a09..231f0659 100644 --- a/tasks/migrations/aave.mainnet.ts +++ b/tasks/migrations/aave.mainnet.ts @@ -46,8 +46,8 @@ task('aave:mainnet', 'Deploy development enviroment') } if (usingTenderly()) { - const postDeployHead = DRE.tenderlyRPC.getHead(); - const postDeployFork = DRE.tenderlyRPC.getFork(); + const postDeployHead = DRE.tenderlyNetwork.getHead(); + const postDeployFork = DRE.tenderlyNetwork.getFork(); console.log('Tenderly Info'); console.log('- Head', postDeployHead); console.log('- Fork', postDeployFork); diff --git a/tasks/migrations/amm.mainnet.ts b/tasks/migrations/amm.mainnet.ts index dd25c9cb..b6fc8d11 100644 --- a/tasks/migrations/amm.mainnet.ts +++ b/tasks/migrations/amm.mainnet.ts @@ -46,8 +46,8 @@ task('amm:mainnet', 'Deploy development enviroment') } if (usingTenderly()) { - const postDeployHead = DRE.tenderlyRPC.getHead(); - const postDeployFork = DRE.tenderlyRPC.getFork(); + const postDeployHead = DRE.tenderlyNetwork.getHead(); + const postDeployFork = DRE.tenderlyNetwork.getFork(); console.log('Tenderly Info'); console.log('- Head', postDeployHead); console.log('- Fork', postDeployFork); diff --git a/tasks/migrations/sidechain.mainnet.ts b/tasks/migrations/sidechain.mainnet.ts index 60607639..e563d8f2 100644 --- a/tasks/migrations/sidechain.mainnet.ts +++ b/tasks/migrations/sidechain.mainnet.ts @@ -49,8 +49,8 @@ task('sidechain:mainnet', 'Deploy market at sidechain') } if (usingTenderly()) { - const postDeployHead = DRE.tenderlyRPC.getHead(); - const postDeployFork = DRE.tenderlyRPC.getFork(); + const postDeployHead = DRE.tenderlyNetwork.getHead(); + const postDeployFork = DRE.tenderlyNetwork.getFork(); console.log('Tenderly Info'); console.log('- Head', postDeployHead); console.log('- Fork', postDeployFork); diff --git a/test-suites/test-aave/helpers/make-suite.ts b/test-suites/test-aave/helpers/make-suite.ts index e503fe7a..e5421031 100644 --- a/test-suites/test-aave/helpers/make-suite.ts +++ b/test-suites/test-aave/helpers/make-suite.ts @@ -163,7 +163,7 @@ export async function initializeMakeSuite() { const setSnapshot = async () => { const hre = DRE as HardhatRuntimeEnvironment; if (usingTenderly()) { - setBuidlerevmSnapshotId((await hre.tenderlyRPC.getHead()) || '0x1'); + setBuidlerevmSnapshotId((await hre.tenderlyNetwork.getHead()) || '0x1'); return; } setBuidlerevmSnapshotId(await evmSnapshot()); @@ -172,7 +172,7 @@ const setSnapshot = async () => { const revertHead = async () => { const hre = DRE as HardhatRuntimeEnvironment; if (usingTenderly()) { - await hre.tenderlyRPC.setHead(buidlerevmSnapshotId); + await hre.tenderlyNetwork.setHead(buidlerevmSnapshotId); return; } await evmRevert(buidlerevmSnapshotId); diff --git a/test-suites/test-amm/helpers/make-suite.ts b/test-suites/test-amm/helpers/make-suite.ts index 80e85ed8..9ddbb7f1 100644 --- a/test-suites/test-amm/helpers/make-suite.ts +++ b/test-suites/test-amm/helpers/make-suite.ts @@ -163,7 +163,7 @@ export async function initializeMakeSuite() { const setSnapshot = async () => { const hre = DRE as HardhatRuntimeEnvironment; if (usingTenderly()) { - setBuidlerevmSnapshotId((await hre.tenderlyRPC.getHead()) || '0x1'); + setBuidlerevmSnapshotId((await hre.tenderlyNetwork.getHead()) || '0x1'); return; } setBuidlerevmSnapshotId(await evmSnapshot()); @@ -172,7 +172,7 @@ const setSnapshot = async () => { const revertHead = async () => { const hre = DRE as HardhatRuntimeEnvironment; if (usingTenderly()) { - await hre.tenderlyRPC.setHead(buidlerevmSnapshotId); + await hre.tenderlyNetwork.setHead(buidlerevmSnapshotId); return; } await evmRevert(buidlerevmSnapshotId);