forked from cerc-io/laconicd-deprecated
fix: fix the module unit test cases
This commit is contained in:
1 parent
49cd996e80
commit
fd887f80bc
2 files changed
+4
-4
No files matched your search
@@ -183,9 +183,9 @@ func GetAPINamespaces() []string {
|
||||
// DefaultJSONRPCConfig returns an EVM config with the JSON-RPC API enabled by default
|
||||
func DefaultJSONRPCConfig() *JSONRPCConfig {
|
||||
return &JSONRPCConfig{
|
||||
Enable: true,
|
||||
API: GetDefaultAPINamespaces(),
|
||||
Address: DefaultJSONRPCAddress,
|
||||
Enable: true,
|
||||
API: GetDefaultAPINamespaces(),
|
||||
// Address: DefaultJSONRPCAddress,
|
||||
WsAddress: DefaultJSONRPCWsAddress,
|
||||
GasCap: DefaultGasCap,
|
||||
EVMTimeout: DefaultEVMTimeout,
|
||||
|
||||
@@ -9,6 +9,6 @@ import (
|
||||
func TestDefaultConfig(t *testing.T) {
|
||||
cfg := DefaultConfig()
|
||||
require.True(t, cfg.JSONRPC.Enable)
|
||||
require.Equal(t, cfg.JSONRPC.Address, DefaultJSONRPCAddress)
|
||||
// require.Equal(t, cfg.JSONRPC.Address, DefaultJSONRPCAddress)
|
||||
require.Equal(t, cfg.JSONRPC.WsAddress, DefaultJSONRPCWsAddress)
|
||||
}
|
||||
Reference in new issue
Block a user