signer/core/apitypes: fix (*TypedData).EncodePrimitiveValue

This commit is contained in:
Jordan Krage 2024-11-25 06:13:19 -06:00
parent 0a8e4835db
commit 1e531eb20d
No known key found for this signature in database
GPG Key ID: FE7D884E2656D771
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ func (typedData *TypedData) EncodePrimitiveValue(encType string, encValue interf
if err != nil {
return nil, err
}
return math.U256Bytes(b), nil
return math.U256Bytes(new(big.Int).Set(b)), nil
}
return nil, fmt.Errorf("unrecognized type '%s'", encType)
}