Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
print error in validateAndParseAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-3-7 committed May 16, 2023
1 parent b44a596 commit 867a93c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function validateAndParseAddress(address: string): string {
warning(address === checksummedAddress, `${address} is not checksummed.`)
return checksummedAddress
} catch (error) {
console.error(error)
invariant(false, `${address} is not a valid address.`)
}
}
Expand Down

0 comments on commit 867a93c

Please sign in to comment.