Skip to content

Commit

Permalink
fix(LW-11312): temporary fix to not validate too long shelley addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
will-break-it committed Aug 27, 2024
1 parent 60ecfc3 commit f73fecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Cardano/Address/BaseAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class BaseAddress {
* @param data The serialized address data.
*/
static unpackParts(type: number, data: Uint8Array): Address {
if (data.length !== 57) throw new InvalidArgumentError('data', 'Base address data length should be 57 bytes long.');
// if (data.length !== 57) throw new InvalidArgumentError('data', 'Base address data length should be 57 bytes long.');

const network = data[0] & 0b0000_1111;
const paymentCredential = Hash28ByteBase16(Buffer.from(data.slice(1, 29)).toString('hex'));
Expand Down

0 comments on commit f73fecb

Please sign in to comment.