Do not crash if not using EIP 155

This commit is contained in:
BTChip github
2018-07-29 18:11:48 +02:00
parent 6fe4705f46
commit 29a2b97b1f

View File

@@ -873,7 +873,8 @@ uint32_t getV(txContent_t *txContent) {
v = (txContent->v[0] << 24) | (txContent->v[1] << 16) |
(txContent->v[2] << 8) | txContent->v[3];
}
else {
else
if (txContent->vLength != 0) {
PRINTF("Unexpected v format\n");
THROW(EXCEPTION);
}