github.com/lmittmann/w3@v0.20.0/module/eth/block_number_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 TestBlockNumber(t *testing.T) { 13 rpctest.RunTestCases(t, []rpctest.TestCase[*big.Int]{ 14 { 15 Golden: "block_number", 16 Call: eth.BlockNumber(), 17 WantRet: w3.I("0xc0fe"), 18 }, 19 }) 20 }