signer/core/apitypes: fix (*TypedData).EncodePrimitiveValue
This commit is contained in:
parent
0a8e4835db
commit
1e531eb20d
|
@ -676,7 +676,7 @@ func (typedData *TypedData) EncodePrimitiveValue(encType string, encValue interf
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
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)
|
return nil, fmt.Errorf("unrecognized type '%s'", encType)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue