Skip to content

Commit 102b313

Browse files
committed
fabric.NewTransaction
Signed-off-by: Angelo De Caro <[email protected]>
1 parent ebe5c4c commit 102b313

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

platform/fabric/transaction.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ type Transaction struct {
187187
tx driver.Transaction
188188
}
189189

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+
190195
func (t *Transaction) Creator() view.Identity {
191196
return t.tx.Creator()
192197
}

0 commit comments

Comments
 (0)