Skip to content

Commit

Permalink
readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed Sep 10, 2024
1 parent 04eda48 commit 19fa137
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,8 @@ function validateVerifyingContract(data: string) {
const { domain: { verifyingContract } = {} } = parseTypedMessage(data);
if (
verifyingContract &&
!(
isValidHexAddress(verifyingContract) ||
(verifyingContract as any) === 'cosmos'
)
!isValidHexAddress(verifyingContract) &&
(verifyingContract as any) !== 'cosmos'
) {
throw rpcErrors.invalidInput();
}
Expand Down

0 comments on commit 19fa137

Please sign in to comment.