Skip to content

Commit 35b273d

Browse files
committed
fix(LW-11312): temporary fix to not validate too long shelley addresses
1 parent c900505 commit 35b273d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/Cardano/Address/BaseAddress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class BaseAddress {
121121
* @param data The serialized address data.
122122
*/
123123
static unpackParts(type: number, data: Uint8Array): Address {
124-
if (data.length !== 57) throw new InvalidArgumentError('data', 'Base address data length should be 57 bytes long.');
124+
// if (data.length !== 57) throw new InvalidArgumentError('data', 'Base address data length should be 57 bytes long.');
125125

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

0 commit comments

Comments
 (0)