core/signer, clef: improve ui-test flow, fix errors in uint handling (#19584)
* core/signer, clef: improve ui-test flow, fix errors in uint handling for eip-712 * core/signer: add fuzzer testcases + crashfixes * signer: address review concerns, check sign in integer parsing
This commit is contained in:
committed by
Guillaume Ballet
parent
7a22da98b9
commit
17381ecc66
@ -42,6 +42,13 @@ const (
|
||||
// HexOrDecimal256 marshals big.Int as hex or decimal.
|
||||
type HexOrDecimal256 big.Int
|
||||
|
||||
// NewHexOrDecimal256 creates a new HexOrDecimal256
|
||||
func NewHexOrDecimal256(x int64) *HexOrDecimal256 {
|
||||
b := big.NewInt(x)
|
||||
h := HexOrDecimal256(*b)
|
||||
return &h
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (i *HexOrDecimal256) UnmarshalText(input []byte) error {
|
||||
bigint, ok := ParseBig256(string(input))
|
||||
|
Reference in New Issue
Block a user