You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FAB-12891] Check owner not nil for import and transfer
- Add a boolean to optionally check if the owner is nil
- Report error if an output owner is nil for import and transfer
Change-Id: I2a24b7288334bf20756aa0406eebbf63d9bbed65
Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>
return&customtx.InvalidTxError{Msg: fmt.Sprintf("token type mismatch in inputs and outputs for transfer with ID %s (%s vs %s)", txID, outputType, inputType)}
134
-
}
135
-
ifoutputSum!=inputSum {
136
-
return&customtx.InvalidTxError{Msg: fmt.Sprintf("token sum mismatch in inputs and outputs for transfer with ID %s (%d vs %d)", txID, outputSum, inputSum)}
return&customtx.InvalidTxError{Msg: fmt.Sprintf("token type mismatch in inputs and outputs for transaction ID %s (%s vs %s)", txID, outputType, inputType)}
178
+
}
179
+
ifoutputSum!=inputSum {
180
+
return&customtx.InvalidTxError{Msg: fmt.Sprintf("token sum mismatch in inputs and outputs for transaction ID %s (%d vs %d)", txID, outputSum, inputSum)}
Expect(err).To(Equal(&customtx.InvalidTxError{Msg: "token input '\x00tokenOutput\x000\x000\x00' spent more than once in single transfer with txID '1'"}))
500
+
Expect(err).To(Equal(&customtx.InvalidTxError{Msg: "token input '\x00tokenOutput\x000\x000\x00' spent more than once in transaction ID '1'"}))
489
501
})
490
502
})
491
503
@@ -512,7 +524,7 @@ var _ = Describe("Verifier", func() {
Expect(err).To(Equal(&customtx.InvalidTxError{Msg: "token input '\x00tokenOutput\x000\x000\x00' spent more than once in single transfer with txID '1'"}))
1079
+
Expect(err).To(Equal(&customtx.InvalidTxError{Msg: "token input '\x00tokenOutput\x000\x000\x00' spent more than once in transaction ID '1'"}))
995
1080
})
996
1081
})
997
1082
@@ -1078,7 +1163,7 @@ var _ = Describe("Verifier", func() {
0 commit comments