From cdcb527ca959e280fdad325d090c8062d8841ed2 Mon Sep 17 00:00:00 2001 From: Giacomo Licari Date: Tue, 23 May 2023 16:42:50 +0200 Subject: [PATCH] Adapt migrations to latest version of the contracts, add .nvmrc --- .nvmrc | 1 + migrations/1_deploy.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..e310231 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18.9.0 diff --git a/migrations/1_deploy.js b/migrations/1_deploy.js index d61443d..02c4939 100644 --- a/migrations/1_deploy.js +++ b/migrations/1_deploy.js @@ -20,7 +20,7 @@ module.exports = async function (deployer, network, accounts) { const token = await SBCToken.at(tokenProxy.address) // deploy deposit contract - await deployer.deploy(SBCDepositContractProxy, accounts[0], token.address, process.env.STAKE_TOKEN_ADDRESS, process.env.STAKE_TOKEN_ADDRESS) + await deployer.deploy(SBCDepositContractProxy, accounts[0], token.address) const depositContractProxy = await SBCDepositContractProxy.deployed() // deploy token wrapper @@ -29,7 +29,7 @@ module.exports = async function (deployer, network, accounts) { const wrapper = await SBCWrapper.at(wrapperProxy.address) // upgrade deposit with the correct unwrapper address - await deployer.deploy(SBCDepositContract, token.address, wrapperProxy.address, process.env.STAKE_TOKEN_ADDRESS) + await deployer.deploy(SBCDepositContract, token.address) const depositContractImplementationWithUnwrapper = await SBCDepositContract.deployed() await depositContractProxy.upgradeTo(depositContractImplementationWithUnwrapper.address)