From 65a9f012841f1dbe59673f5183d9dac25b5598aa Mon Sep 17 00:00:00 2001 From: Caroline G Date: Tue, 27 Sep 2022 16:57:19 +0200 Subject: [PATCH] fix(quantity): changed the error message if the value has not 0x prefix --- eth/quantity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/quantity.go b/eth/quantity.go index 1169900..de3a305 100644 --- a/eth/quantity.go +++ b/eth/quantity.go @@ -31,7 +31,7 @@ func NewQuantity(value string) (*Quantity, error) { q.s = value if !strings.HasPrefix(value, "0x") { - return nil, errors.New("quantity values must start with 0x") + return nil, errors.New("hex string without 0x prefix") } if value == "0x" {