Skip to content

Commit

Permalink
fix: typed data values typing (#6)
Browse files Browse the repository at this point in the history
* fix: typed data values typing

* chore: comment on typing
  • Loading branch information
zzmp authored Jan 20, 2023
1 parent 035e0dd commit 02f3b70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export async function signTypedData(
signer: JsonRpcSigner,
domain: TypedDataDomain,
types: Record<string, TypedDataField[]>,
value: Record<string, unknown>
// Use Record<string, any> for the value to match the JsonRpcSigner._signTypedData signature.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: Record<string, any>
) {
// Populate any ENS names (in-place)
const populated = await _TypedDataEncoder.resolveNames(domain, types, value, (name: string) => {
Expand Down

0 comments on commit 02f3b70

Please sign in to comment.