From 02f3b704c20b50657a886af94d83b8ed058abda0 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Fri, 20 Jan 2023 15:43:50 -0800 Subject: [PATCH] fix: typed data values typing (#6) * fix: typed data values typing * chore: comment on typing --- src/provider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/provider.ts b/src/provider.ts index e349b19..f0d3331 100644 --- a/src/provider.ts +++ b/src/provider.ts @@ -16,7 +16,9 @@ export async function signTypedData( signer: JsonRpcSigner, domain: TypedDataDomain, types: Record, - value: Record + // Use Record for the value to match the JsonRpcSigner._signTypedData signature. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + value: Record ) { // Populate any ENS names (in-place) const populated = await _TypedDataEncoder.resolveNames(domain, types, value, (name: string) => {