mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
config: unexpose chainID
This commit is contained in:
committed by
Zach Ramsay
parent
a92a32b862
commit
a8e625e99d
@@ -10,6 +10,7 @@ import (
|
||||
liteErr "github.com/tendermint/tendermint/lite/errors"
|
||||
rpcclient "github.com/tendermint/tendermint/rpc/client"
|
||||
rpctest "github.com/tendermint/tendermint/rpc/test"
|
||||
"github.com/tendermint/tendermint/types"
|
||||
)
|
||||
|
||||
func TestProvider(t *testing.T) {
|
||||
@@ -17,7 +18,8 @@ func TestProvider(t *testing.T) {
|
||||
|
||||
cfg := rpctest.GetConfig()
|
||||
rpcAddr := cfg.RPC.ListenAddress
|
||||
chainID := cfg.ChainID
|
||||
genDoc, _ := types.GenesisDocFromFile(cfg.GenesisFile())
|
||||
chainID := genDoc.ChainID
|
||||
p := NewHTTPProvider(rpcAddr)
|
||||
require.NotNil(t, p)
|
||||
|
||||
|
Reference in New Issue
Block a user