Skip to content

Commit 34c9bf2

Browse files
committed
fix: Fix typo of tenderlyRPC for tenderlyNetwork
1 parent 64d37bc commit 34c9bf2

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

helpers/tenderly-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const usingTenderly = () =>
99

1010
export const verifyAtTenderly = async (id: string, instance: Contract) => {
1111
console.log('\n- Doing Tenderly contract verification of', id);
12-
await (DRE as any).tenderlyRPC.verify({
12+
await (DRE as any).tenderlyNetwork.verify({
1313
name: id,
1414
address: instance.address,
1515
});

tasks/full/2_lending_pool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment')
8282
if (DRE.network.name.includes('tenderly')) {
8383
const transactionLink = `https://dashboard.tenderly.co/${DRE.config.tenderly.username}/${
8484
DRE.config.tenderly.project
85-
}/fork/${DRE.tenderlyRPC.getFork()}/simulation/${DRE.tenderlyRPC.getHead()}`;
85+
}/fork/${DRE.tenderlyNetwork.getFork()}/simulation/${DRE.tenderlyNetwork.getHead()}`;
8686
console.error('Check tx error:', transactionLink);
8787
}
8888
throw error;

tasks/full/3_oracles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ task('full:deploy-oracles', 'Deploy oracles for dev enviroment')
8484
if (DRE.network.name.includes('tenderly')) {
8585
const transactionLink = `https://dashboard.tenderly.co/${DRE.config.tenderly.username}/${
8686
DRE.config.tenderly.project
87-
}/fork/${DRE.tenderlyRPC.getFork()}/simulation/${DRE.tenderlyRPC.getHead()}`;
87+
}/fork/${DRE.tenderlyNetwork.getFork()}/simulation/${DRE.tenderlyNetwork.getHead()}`;
8888
console.error('Check tx error:', transactionLink);
8989
}
9090
throw error;

tasks/migrations/aave.mainnet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ task('aave:mainnet', 'Deploy development enviroment')
4646
}
4747

4848
if (usingTenderly()) {
49-
const postDeployHead = DRE.tenderlyRPC.getHead();
50-
const postDeployFork = DRE.tenderlyRPC.getFork();
49+
const postDeployHead = DRE.tenderlyNetwork.getHead();
50+
const postDeployFork = DRE.tenderlyNetwork.getFork();
5151
console.log('Tenderly Info');
5252
console.log('- Head', postDeployHead);
5353
console.log('- Fork', postDeployFork);

tasks/migrations/amm.mainnet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ task('amm:mainnet', 'Deploy development enviroment')
4646
}
4747

4848
if (usingTenderly()) {
49-
const postDeployHead = DRE.tenderlyRPC.getHead();
50-
const postDeployFork = DRE.tenderlyRPC.getFork();
49+
const postDeployHead = DRE.tenderlyNetwork.getHead();
50+
const postDeployFork = DRE.tenderlyNetwork.getFork();
5151
console.log('Tenderly Info');
5252
console.log('- Head', postDeployHead);
5353
console.log('- Fork', postDeployFork);

tasks/migrations/sidechain.mainnet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ task('sidechain:mainnet', 'Deploy market at sidechain')
4949
}
5050

5151
if (usingTenderly()) {
52-
const postDeployHead = DRE.tenderlyRPC.getHead();
53-
const postDeployFork = DRE.tenderlyRPC.getFork();
52+
const postDeployHead = DRE.tenderlyNetwork.getHead();
53+
const postDeployFork = DRE.tenderlyNetwork.getFork();
5454
console.log('Tenderly Info');
5555
console.log('- Head', postDeployHead);
5656
console.log('- Fork', postDeployFork);

test-suites/test-aave/helpers/make-suite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export async function initializeMakeSuite() {
163163
const setSnapshot = async () => {
164164
const hre = DRE as HardhatRuntimeEnvironment;
165165
if (usingTenderly()) {
166-
setBuidlerevmSnapshotId((await hre.tenderlyRPC.getHead()) || '0x1');
166+
setBuidlerevmSnapshotId((await hre.tenderlyNetwork.getHead()) || '0x1');
167167
return;
168168
}
169169
setBuidlerevmSnapshotId(await evmSnapshot());
@@ -172,7 +172,7 @@ const setSnapshot = async () => {
172172
const revertHead = async () => {
173173
const hre = DRE as HardhatRuntimeEnvironment;
174174
if (usingTenderly()) {
175-
await hre.tenderlyRPC.setHead(buidlerevmSnapshotId);
175+
await hre.tenderlyNetwork.setHead(buidlerevmSnapshotId);
176176
return;
177177
}
178178
await evmRevert(buidlerevmSnapshotId);

test-suites/test-amm/helpers/make-suite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export async function initializeMakeSuite() {
163163
const setSnapshot = async () => {
164164
const hre = DRE as HardhatRuntimeEnvironment;
165165
if (usingTenderly()) {
166-
setBuidlerevmSnapshotId((await hre.tenderlyRPC.getHead()) || '0x1');
166+
setBuidlerevmSnapshotId((await hre.tenderlyNetwork.getHead()) || '0x1');
167167
return;
168168
}
169169
setBuidlerevmSnapshotId(await evmSnapshot());
@@ -172,7 +172,7 @@ const setSnapshot = async () => {
172172
const revertHead = async () => {
173173
const hre = DRE as HardhatRuntimeEnvironment;
174174
if (usingTenderly()) {
175-
await hre.tenderlyRPC.setHead(buidlerevmSnapshotId);
175+
await hre.tenderlyNetwork.setHead(buidlerevmSnapshotId);
176176
return;
177177
}
178178
await evmRevert(buidlerevmSnapshotId);

0 commit comments

Comments
 (0)