Skip to content

Commit

Permalink
fix: lint error in wallet-client.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Moldoveanu <moldy530@gmail.com>
  • Loading branch information
therealharpaljadeja and moldy530 committed Sep 7, 2023
1 parent 618a08b commit f96b6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/signer/wallet-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class WalletClientSigner implements SmartAccountSigner {
readonly signMessage: (
message: string | Hex | ByteArray
) => Promise<`0x${string}`> = async (message) => {
if (typeof message === "string" && !message.startsWith("0x")) {
if (typeof message === "string" && !isHex(message)) {
return this.client.signMessage({
account: await this.getAddress(),
message,
Expand Down

0 comments on commit f96b6a5

Please sign in to comment.