Skip to content

Commit

Permalink
fix: minor deploy flow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
krogla committed Oct 23, 2023
1 parent c3756aa commit f83ff6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions scripts/simpledvt/02-clone-nor.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,6 @@ async function deploySimpleDVT({ web3, artifacts, trgAppName = APP_TRG, ipfsCid
}
}

log.splitter()
await _pause()
log.splitter()

const newVoteEvmScript = encodeCallScript([
{
to: voting.address,
Expand Down Expand Up @@ -458,6 +454,9 @@ async function deploySimpleDVT({ web3, artifacts, trgAppName = APP_TRG, ipfsCid

log(`Target App initialized`, yl(await trgApp.hasInitialized()))
} else {
await _pause(mg('>>> Ready fo TX, enter Y to continue, interrupt process otherwise:'))
log.splitter()

const tx = await log.tx(
`Voting: Clone app '${srcAppName}' to '${trgAppName}'`,
tokenManager.forward(newVoteEvmScript, { from: deployer })
Expand Down
2 changes: 1 addition & 1 deletion scripts/simpledvt/03-check-deployed.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async function checkSimpleDVT({ web3, artifacts, trgAppName = APP_TRG, ipfsCid =
from: stranger,
gasPrice: 0,
})
await evmExecutor.executeEVMScript(evmScript)
await evmExecutor.executeEVMScript(evmScript, { gasPrice: 0 })
_checkEq(await trgApp.getNodeOperatorsCount(), 2, `Simulate init: operators count = 2`)

// add keys to module for op1 (on behalf op1 reward addr)
Expand Down

0 comments on commit f83ff6d

Please sign in to comment.