Skip to content

Commit

Permalink
Fix build - provider isValidSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Jul 14, 2023
1 parent a00335a commit b0de479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/provider/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class WalletUtils {
): Promise<boolean> {
const provider = this.wallet.getProvider(chainId)
if (!provider) throw new Error(`unable to get provider for chainId ${chainId}`)
return isValidSignature(address, digest, signature, provider, await this.wallet.getWalletContext())
return isValidSignature(address, digest, signature, provider)
}

// Verify message signature
Expand All @@ -73,7 +73,7 @@ export class WalletUtils {
if (!provider) throw new Error(`unable to get provider for chainId ${chainId}`)
const prefixed = prefixEIP191Message(message)
const digest = encodeMessageDigest(prefixed)
return isValidSignature(address, digest, signature, provider, await this.wallet.getWalletContext())
return isValidSignature(address, digest, signature, provider)
}

// Verify typedData signature
Expand Down

0 comments on commit b0de479

Please sign in to comment.