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

     1  package eth_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/lmittmann/w3/module/eth"
     7  	"github.com/lmittmann/w3/rpctest"
     8  )
     9  
    10  func TestChainID(t *testing.T) {
    11  	rpctest.RunTestCases(t, []rpctest.TestCase[uint64]{
    12  		{
    13  			Golden:  "chain_id",
    14  			Call:    eth.ChainID(),
    15  			WantRet: 1,
    16  		},
    17  	})
    18  }