From d72cb1da2f4946adf29bf0cb6687d3909d430036 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Wed, 21 Aug 2024 16:16:46 -0400 Subject: [PATCH] Add revision to typed data --- typed/typed.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/typed/typed.go b/typed/typed.go index f1b89915..77cc0314 100644 --- a/typed/typed.go +++ b/typed/typed.go @@ -20,9 +20,10 @@ type TypedData struct { } type Domain struct { - Name string - Version string - ChainId string + Name string + Version string + ChainId string + Revision string } type TypeDef struct { @@ -59,6 +60,8 @@ func (dm Domain) FmtDefinitionEncoding(field string) (fmtEnc []*big.Int) { processStrToBig(dm.Version) case "chainId": processStrToBig(dm.ChainId) + case "revision": + processStrToBig(dm.Revision) } return fmtEnc }