Skip to content

Commit

Permalink
address: don't restrict data length to 20 or 32
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Aug 13, 2020
1 parent d1b42a6 commit 4b75f8a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/primitives/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,6 @@ class Address extends bio.Struct {
throw new Error('Object is not an address.');

if (Buffer.isBuffer(data)) {
if (data.length !== 20 && data.length !== 32)
throw new Error('Object is not an address.');
return data;
}

Expand Down

0 comments on commit 4b75f8a

Please sign in to comment.