Skip to content

Commit 91a9530

Browse files
authored
Merge pull request #539 from oasisprotocol/kostko/feature/rofl-deploy-unlock-first
feat(cmd/rofl): Unlock account before pushing to OCI repository
2 parents f99f70c + 54dc1d8 commit 91a9530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/rofl/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ var (
129129
return
130130
}
131131

132+
acc := common.LoadAccount(cliConfig.Global(), npa.AccountName)
133+
132134
ociRepository := ociRepository(deployment)
133135
orcFilename := roflCommon.GetOrcFilename(manifest, roflCommon.DeploymentName)
134136
fmt.Printf("Pushing ROFL app to OCI repository '%s'...\n", ociRepository)
@@ -198,7 +200,6 @@ var (
198200
TermCount: deployTermCount,
199201
})
200202

201-
acc := common.LoadAccount(cliConfig.Global(), npa.AccountName)
202203
var sigTx, meta any
203204
sigTx, meta, err = common.SignParaTimeTransaction(ctx, npa, acc, conn, tx, nil)
204205
cobra.CheckErr(err)
@@ -263,7 +264,6 @@ var (
263264
})},
264265
})
265266

266-
acc := common.LoadAccount(cliConfig.Global(), npa.AccountName)
267267
var sigTx, meta any
268268
sigTx, meta, err = common.SignParaTimeTransaction(ctx, npa, acc, conn, tx, nil)
269269
cobra.CheckErr(err)

0 commit comments

Comments
 (0)