Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Feb 23, 2024
1 parent 1b6dcab commit 388a034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sdk/base/src/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const normalizeAddress = (a: Address) => trimLeading0x(a).toLowerCase()

export const isNullAddress = (a: Address) => normalizeAddress(a) === normalizeAddress(NULL_ADDRESS)

export const normalizeAddressWith0x = (a: Address) => ensureLeading0x(a).toLowerCase()
export const normalizeAddressWith0x = (a: Address) =>
ensureLeading0x(a).toLowerCase() as StrongAddress

export const trimLeading0x = (input: string) => (input.startsWith('0x') ? input.slice(2) : input)

Expand Down

0 comments on commit 388a034

Please sign in to comment.