mirror of
https://github.com/tornadocash/tornado-deploy.git
synced 2025-01-15 23:47:56 +01:00
remove deployer
This commit is contained in:
parent
9593914bca
commit
530a0f5ff9
@ -16,6 +16,7 @@ async function main() {
|
||||
const provider = new ethers.providers.JsonRpcProvider(process.env.RPC_URL)
|
||||
const wallet = new ethers.Wallet(privateKey, provider)
|
||||
let deployer = new ethers.Contract(actions.deployer, abi, wallet)
|
||||
console.log('actions.deployer', actions.deployer)
|
||||
|
||||
let code = await provider.getCode(actions.eipDeployer.expectedAddress)
|
||||
if (!code || code === '0x') {
|
||||
@ -46,7 +47,7 @@ async function main() {
|
||||
continue
|
||||
}
|
||||
console.log(`Deploying ${action.contract} to ${action.domain} (${action.expectedAddress})`)
|
||||
const tx = await deployer.deploy(action.bytecode, actions.salt, { gasLimit: 7e7, gasPrice: 1e9 })
|
||||
const tx = await deployer.deploy(action.bytecode, actions.salt, { gasLimit: 70e6, gasPrice: 1e9 })
|
||||
console.log(`TX hash ${explorer}/tx/${tx.hash}`)
|
||||
try {
|
||||
await tx.wait()
|
||||
@ -58,7 +59,7 @@ async function main() {
|
||||
console.error(`Failed to deploy ${action.contract}, sending debug tx`)
|
||||
// const trace = await provider.send('debug_traceTransaction', [ tx.hash ])
|
||||
// console.log(trace)
|
||||
const tx2 = await wallet.sendTransaction({ gasLimit: 8e6, gasPrice: 1e9, data: action.bytecode })
|
||||
const tx2 = await wallet.sendTransaction({ gasLimit: 70e6, gasPrice: 1e9, data: action.bytecode })
|
||||
console.log(`TX hash ${explorer}/tx/${tx2.hash}`)
|
||||
await tx2.wait()
|
||||
console.log('Mined, check revert reason on etherscan')
|
||||
|
@ -39,17 +39,17 @@ const eipDeployer = {
|
||||
|
||||
// Actions needed for new blockchains
|
||||
// Assumes that EIP-2470 deployer is already present on the chain
|
||||
actions.push(
|
||||
deploy({
|
||||
domain: 'deployer.contract.tornadocash.eth',
|
||||
contract: deployer,
|
||||
args: ['0x0000000000000000000000000000000000000000'],
|
||||
dependsOn: [],
|
||||
title: 'Deployment proxy',
|
||||
description:
|
||||
'This a required contract to initialize all other contracts. It is simple wrapper around EIP-2470 Singleton Factory that emits an event of contract deployment. The wrapper also validates if the deployment was successful.',
|
||||
}),
|
||||
)
|
||||
// actions.push(
|
||||
// deploy({
|
||||
// domain: 'deployer.contract.tornadocash.eth',
|
||||
// contract: deployer,
|
||||
// args: ['0x0000000000000000000000000000000000000000'],
|
||||
// dependsOn: [],
|
||||
// title: 'Deployment proxy',
|
||||
// description:
|
||||
// 'This a required contract to initialize all other contracts. It is simple wrapper around EIP-2470 Singleton Factory that emits an event of contract deployment. The wrapper also validates if the deployment was successful.',
|
||||
// }),
|
||||
// )
|
||||
|
||||
// Deploy Hasher
|
||||
actions.push(
|
||||
|
Loading…
Reference in New Issue
Block a user