From 81e3aff4b5c9560acb98623e74aed2c5dafa3bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Tue, 13 Feb 2024 09:41:50 +0100 Subject: [PATCH] Simplify 1 ETH constant --- jsonrpc/dispatcher_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jsonrpc/dispatcher_test.go b/jsonrpc/dispatcher_test.go index ae0331b228..63cfc7e90d 100644 --- a/jsonrpc/dispatcher_test.go +++ b/jsonrpc/dispatcher_test.go @@ -3,7 +3,6 @@ package jsonrpc import ( "encoding/json" "fmt" - "math/big" "reflect" "testing" "time" @@ -13,12 +12,11 @@ import ( "github.com/hashicorp/go-hclog" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/umbracle/ethgo" ) var ( - oneEther = new(big.Int).Mul( - big.NewInt(1), - new(big.Int).Exp(big.NewInt(10), big.NewInt(18), nil)) + oneEther = ethgo.Ether(1) ) func toArgUint64Ptr(value uint64) *argUint64 {