Skip to content

Commit

Permalink
Buffer txstate
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed Jan 14, 2019
1 parent 2949f00 commit 9f1c86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/txstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class LedgerTXState {

// TODO: remove after bcoin@next
if (typeof key === 'string')
key = Buffer.from(key, 'hex');
key = Buffer.from(key.padEnd(66, '0'), 'hex');

assert(Buffer.isBuffer(key));

Expand Down

0 comments on commit 9f1c86e

Please sign in to comment.