Skip to content

Commit

Permalink
Do not allow v to be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Feb 1, 2021
1 parent ab39c0a commit 14581b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tx/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default class Transaction {
* Validates tx's `v` value
*/
private _validateTxV(v: BN | undefined): void {
if (v === undefined || v.toNumber() === 0) {
if (v === undefined) {
return
}

Expand Down

0 comments on commit 14581b0

Please sign in to comment.