Skip to content

Commit 5919919

Browse files
authored
chore(cre):spell out ExecuteOperation type parameters for workflow deploy (#26)
1 parent 28d53d7 commit 5919919

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

cre/changesets/workflow_deploy.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ func (CREWorkflowDeployChangeset) Apply(e cldf.Environment, input creops.CREWork
5353
EVMDeployerKey: envCfg.Onchain.EVM.DeployerKey,
5454
}
5555

56-
report, err := fwops.ExecuteOperation(e.OperationsBundle, creops.CREWorkflowDeployOp, deps, input)
56+
report, err := fwops.ExecuteOperation[creops.CREWorkflowDeployInput, creops.CREWorkflowDeployOutput, creops.CREDeployDeps](
57+
e.OperationsBundle,
58+
creops.CREWorkflowDeployOp,
59+
deps,
60+
input,
61+
)
5762
out := cldf.ChangesetOutput{
5863
Reports: []fwops.Report[any, any]{report.ToGenericReport()},
5964
}

cre/operations/workflow_deploy_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ func TestCREWorkflowDeployOp(t *testing.T) {
178178
CRECfg: cfgenv.CREConfig{},
179179
}
180180

181-
out, err := fwops.ExecuteOperation(bundle, CREWorkflowDeployOp, deps, tc.input(t))
181+
out, err := fwops.ExecuteOperation[CREWorkflowDeployInput, CREWorkflowDeployOutput, CREDeployDeps](
182+
bundle, CREWorkflowDeployOp, deps, tc.input(t))
182183
tc.assert(t, out, err)
183184
})
184185
}

0 commit comments

Comments
 (0)