From adb42e4c0599fdf00de90fa83d239984219ed0b0 Mon Sep 17 00:00:00 2001 From: heisenberg Date: Fri, 24 Jan 2025 11:51:07 +0800 Subject: [PATCH] fix: filtering insecure fields in eip719 --- src/ui/views/Approval/components/TypedDataActions/utils.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/views/Approval/components/TypedDataActions/utils.ts b/src/ui/views/Approval/components/TypedDataActions/utils.ts index a580bda51f0..8451ffc4161 100644 --- a/src/ui/views/Approval/components/TypedDataActions/utils.ts +++ b/src/ui/views/Approval/components/TypedDataActions/utils.ts @@ -157,5 +157,11 @@ function parseSignTypedData(typedData: { message: typedData.message, }); + typedData.domain = filterPrimaryType({ + primaryType: 'EIP712Domain', + types, + message: domain, + }); + return typedData; }