Skip to content

Commit

Permalink
Simplify 1 ETH constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Feb 19, 2024
1 parent 869afe0 commit 557924a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jsonrpc/dispatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package jsonrpc
import (
"encoding/json"
"fmt"
"math/big"
"reflect"
"testing"
"time"
Expand All @@ -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 {
Expand Down

0 comments on commit 557924a

Please sign in to comment.