Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/scripts/uiFuncs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ uiFuncs.signTxTrezor = function(rawTx, { path }, callback) {
}
}

// check the returned signature_v and recalc signature_v if it needed
// see also https://github.com/trezor/trezor-mcu/pull/399
if (result.v <= 1) {
// for larger chainId, only signature_v returned. simply recalc signature_v
result.v += 2 * rawTx.chainId + 35;
}

rawTx.v = "0x" + ethFuncs.decimalToHex(result.v);
rawTx.r = "0x" + result.r;
rawTx.s = "0x" + result.s;
Expand Down