Skip to content

Commit 9588dbc

Browse files
spkjpfaustbrian
authored andcommitted
fix(crypto): deserialize type > 0 with vendor field instead of skipping it (#2459)
1 parent 9399a66 commit 9588dbc

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [2.3.1] - 2019-04-23
11+
12+
### Fixed
13+
14+
- Deserialize type > 0 with vendor field instead of skipping it ([#2459])
15+
1016
## [2.3.0] - 2019-04-23
1117

1218
### Breaking Changes
@@ -285,6 +291,7 @@ Closed security vulnerabilities:
285291
- Initial Release
286292

287293
[unreleased]: https://github.com/ARKEcosystem/core/compare/2.3.0...develop
294+
[2.3.1]: https://github.com/ARKEcosystem/core/compare/2.3.0...2.3.1
288295
[2.3.0]: https://github.com/ARKEcosystem/core/compare/2.2.2...2.3.0
289296
[2.2.2]: https://github.com/ARKEcosystem/core/compare/2.2.1...2.2.2
290297
[2.2.1]: https://github.com/ARKEcosystem/core/compare/2.2.0...2.2.1
@@ -437,3 +444,4 @@ Closed security vulnerabilities:
437444
[#2404]: https://github.com/ARKEcosystem/core/pull/2404
438445
[#2405]: https://github.com/ARKEcosystem/core/pull/2405
439446
[#2458]: https://github.com/ARKEcosystem/core/pull/2458
447+
[#2459]: https://github.com/ARKEcosystem/core/pull/2459

packages/crypto/src/transactions/deserializers/transaction.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Transaction, TransactionRegistry } from "..";
33
import { TransactionTypes } from "../../constants";
44
import { crypto } from "../../crypto";
55
import { TransactionVersionError } from "../../errors";
6+
import { configManager } from "../../managers";
67
import { Bignum } from "../../utils";
78
import { ITransactionData } from "../interfaces";
89

@@ -47,11 +48,6 @@ class TransactionDeserializer {
4748
}
4849

4950
private deserializeVendorField(transaction: Transaction, buf: ByteBuffer): void {
50-
if (!transaction.hasVendorField()) {
51-
buf.skip(1);
52-
return;
53-
}
54-
5551
const vendorFieldLength = buf.readUint8();
5652
if (vendorFieldLength > 0) {
5753
transaction.data.vendorFieldHex = buf.readBytes(vendorFieldLength).toString("hex");

0 commit comments

Comments
 (0)