Skip to content

Commit dee6a7e

Browse files
fixup! Register optional dig dependency
Signed-off-by: Alexandros Filios <[email protected]>
1 parent 5e909c0 commit dee6a7e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: integration/fabric/iou/views/approver.go

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"time"
1212

1313
"github.com/hyperledger-labs/fabric-smart-client/integration/fabric/iou/states"
14+
utils2 "github.com/hyperledger-labs/fabric-smart-client/platform/common/utils"
1415
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric"
1516
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/driver"
1617
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/services/state"
@@ -124,6 +125,18 @@ func (c *ApproverViewFactory) NewView([]byte) (view.View, error) {
124125
}, nil
125126
}
126127

128+
type initApproverView struct{}
129+
130+
func (v *initApproverView) Call(ctx view.Context) (interface{}, error) {
131+
return ctx.RunView(&ApproverInitView{fnsProvider: utils2.MustGet(fabric.GetNetworkServiceProvider(ctx))})
132+
}
133+
134+
type InitApproverViewFactory struct{}
135+
136+
func (f *InitApproverViewFactory) NewView([]byte) (view.View, error) {
137+
return &initApproverView{}, nil
138+
}
139+
127140
type ApproverInitView struct {
128141
fnsProvider *fabric.NetworkServiceProvider
129142
}

0 commit comments

Comments
 (0)