Skip to content

Commit

Permalink
Add revision to typed data
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Aug 21, 2024
1 parent a52915b commit d72cb1d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions typed/typed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit d72cb1d

Please sign in to comment.