Skip to content

Commit

Permalink
check it starts with 0x
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek committed Nov 27, 2024
1 parent 40931b5 commit 68e8186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/definitions/src/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function toNative<C extends Chain>(
// as a NativeAddress, we try one more time to parse it as a UniversalAddress
// first and then convert that to a NativeAddress.
if (
(typeof ua === 'string' && ua.length === 32) ||
(typeof ua === 'string' && ua.length === 32 && ua.startsWith('0x')) ||
(ua instanceof Uint8Array && ua.length === 32)
) {
console.error(err);
Expand Down

0 comments on commit 68e8186

Please sign in to comment.