Skip to content

Commit ce2ae28

Browse files
committed
revert: remove viewer deployment script
1 parent 0a4a52e commit ce2ae28

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

scripts/create2/deploy.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
const { artifacts, ethers, run, network } = require('hardhat');
1+
const { artifacts, ethers, run } = require('hardhat');
22
const { keccak256 } = require('ethereum-cryptography/keccak');
33
const { bytesToHex, hexToBytes } = require('ethereum-cryptography/utils');
44
const linker = require('solc/linker');
55

66
const { SIGNER_TYPE, getSigner } = require('./get-signer');
7-
const { parseEther } = require('ethers/lib/utils');
87

98
const ADDRESS_REGEX = /^0x[a-f0-9]{40}$/i;
109

11-
/**
12-
* Supports both mainnet and tenderly networks
13-
*/
1410
const usage = () => {
1511
console.log(`
1612
Usage:
@@ -192,19 +188,6 @@ async function main() {
192188

193189
const signer = await getSigner(opts.kms ? SIGNER_TYPE.AWS_KMS : SIGNER_TYPE.LOCAL);
194190

195-
if (network.name === 'tenderly') {
196-
const { TENDERLY_SNAPSHOT_ID } = process.env;
197-
if (TENDERLY_SNAPSHOT_ID) {
198-
await ethers.provider.send('evm_revert', [TENDERLY_SNAPSHOT_ID]);
199-
console.info(`Reverted to snapshot ${TENDERLY_SNAPSHOT_ID}`);
200-
} else {
201-
const snapshotId = await ethers.provider.send('evm_snapshot', []);
202-
console.info(`Snapshot ID: ${snapshotId}`);
203-
process.env.TENDERLY_SNAPSHOT_ID = snapshotId;
204-
}
205-
await ethers.provider.send('tenderly_setBalance', [signer.address, ethers.utils.hexValue(parseEther('100'))]);
206-
}
207-
208191
// make sure the contracts are compiled and we're not deploying an outdated artifact
209192
await run('compile');
210193

0 commit comments

Comments
 (0)