We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe5c4c commit 102b313Copy full SHA for 102b313
platform/fabric/transaction.go
@@ -187,6 +187,11 @@ type Transaction struct {
187
tx driver.Transaction
188
}
189
190
+// NewTransaction returns a new instance of Transaction for the given arguments
191
+func NewTransaction(fns *NetworkService, tx driver.Transaction) *Transaction {
192
+ return &Transaction{fns: fns, tx: tx}
193
+}
194
+
195
func (t *Transaction) Creator() view.Identity {
196
return t.tx.Creator()
197
0 commit comments