fix: set eth, web3 and net namespaces as default (#391)

This commit is contained in:
crypto-facs 2021-08-03 18:35:04 +02:00 committed by GitHub
parent fc16feb1aa
commit 2bd107ee79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ To enable RPC server use the following flag (set to true by default).
ethermintd start --evm-rpc.enable ethermintd start --evm-rpc.enable
``` ```
By default, only `eth` namespace is enabled. In order to enable other namespaces use flag `--evm-rpc.api`. `Eth`,`Net` and `Web3` namespaces are enabled by default. In order to enable other namespaces use flag `--evm-rpc.api`.
``` ```
ethermintd start --evm-rpc.api eth,txpool,personal,net,debug,web3 ethermintd start --evm-rpc.api eth,txpool,personal,net,debug,web3

View File

@ -18,7 +18,7 @@ const (
// GetDefaultAPINamespaces returns the default list of JSON-RPC namespaces that should be enabled // GetDefaultAPINamespaces returns the default list of JSON-RPC namespaces that should be enabled
func GetDefaultAPINamespaces() []string { func GetDefaultAPINamespaces() []string {
return []string{"eth"} return []string{"eth", "net", "web3"}
} }
// AppConfig helps to override default appConfig template and configs. // AppConfig helps to override default appConfig template and configs.