github.com/lmittmann/w3@v0.20.0/module/eth/gas_price_test.go (about)

     1  package eth_test
     2  
     3  import (
     4  	"math/big"
     5  	"testing"
     6  
     7  	"github.com/lmittmann/w3"
     8  	"github.com/lmittmann/w3/module/eth"
     9  	"github.com/lmittmann/w3/rpctest"
    10  )
    11  
    12  func TestGasPrice(t *testing.T) {
    13  	rpctest.RunTestCases(t, []rpctest.TestCase[*big.Int]{
    14  		{
    15  			Golden:  "gas_price",
    16  			Call:    eth.GasPrice(),
    17  			WantRet: w3.I("0xc0fe"),
    18  		},
    19  	})
    20  }