Skip to content

Commit

Permalink
Use Big Endian for lockTime
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed May 2, 2018
1 parent 911c0ca commit 480c2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hw-app-btc/src/Btc.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export default class Btc {
offset += 4;
});
buffer[offset++] = 0x00; // authorization length
buffer.writeUInt32LE(lockTime, offset);
buffer.writeUInt32BE(lockTime, offset);
offset += 4;
buffer[offset++] = sigHashType;
return this.transport.send(0xe0, 0x48, 0x00, 0x00, buffer).then(result => {
Expand Down

0 comments on commit 480c2ae

Please sign in to comment.