File tree 1 file changed +13
-0
lines changed
integration/fabric/iou/views
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
"time"
12
12
13
13
"github.com/hyperledger-labs/fabric-smart-client/integration/fabric/iou/states"
14
+ utils2 "github.com/hyperledger-labs/fabric-smart-client/platform/common/utils"
14
15
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric"
15
16
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/driver"
16
17
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/services/state"
@@ -124,6 +125,18 @@ func (c *ApproverViewFactory) NewView([]byte) (view.View, error) {
124
125
}, nil
125
126
}
126
127
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
+
127
140
type ApproverInitView struct {
128
141
fnsProvider * fabric.NetworkServiceProvider
129
142
}
You can’t perform that action at this time.
0 commit comments