Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt migrations to latest version of the contracts #43

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.9.0
4 changes: 2 additions & 2 deletions migrations/1_deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down