Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
mdymalla committed Jul 16, 2024
1 parent 1dbbd56 commit 218edc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion signer/core/apitypes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ type Type struct {
}

func (t *Type) isArray() bool {
return strings.HasSuffix(t.Type, "[]")
return strings.Contains(t.Type, "[")
}

// typeName returns the canonical name of the type. If the type is 'Person[]', then
Expand Down Expand Up @@ -271,6 +271,8 @@ func TypedDataAndHash(typedData TypedData) ([]byte, string, error) {

// HashStruct generates a keccak256 hash of the encoding of the provided data
func (typedData *TypedData) HashStruct(primaryType string, data TypedDataMessage) (hexutil.Bytes, error) {
fmt.Println("\nrunning hash struct")

encodedData, err := typedData.EncodeData(primaryType, data, 1)
if err != nil {
return nil, err
Expand Down

0 comments on commit 218edc3

Please sign in to comment.