forked from cerc-io/laconicd-deprecated
Rpcapi fix - requires Eth namespace (#845)
* update join_network docs * add eth as default in apis * update changelog
This commit is contained in:
parent
2294a19e23
commit
2df3abd6a2
@ -35,6 +35,11 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
### API Breaking
|
||||
* (eth) [\#845](https://github.com/cosmos/ethermint/pull/845) The `eth` namespace must be included in the list of API's as default to run the rpc server without error.
|
||||
|
||||
## [v0.4.1] - 2021-03-01
|
||||
|
||||
### API Breaking
|
||||
|
24
rpc/apis.go
24
rpc/apis.go
@ -34,18 +34,6 @@ func GetAPIs(clientCtx context.CLIContext, selectedApis []string, keys ...ethsec
|
||||
|
||||
var apis []rpc.API
|
||||
|
||||
for _, api := range selectedApis {
|
||||
switch api {
|
||||
case Web3Namespace:
|
||||
apis = append(apis,
|
||||
rpc.API{
|
||||
Namespace: Web3Namespace,
|
||||
Version: apiVersion,
|
||||
Service: web3.NewAPI(),
|
||||
Public: true,
|
||||
},
|
||||
)
|
||||
case EthNamespace:
|
||||
apis = append(apis,
|
||||
rpc.API{
|
||||
Namespace: EthNamespace,
|
||||
@ -62,6 +50,18 @@ func GetAPIs(clientCtx context.CLIContext, selectedApis []string, keys ...ethsec
|
||||
Public: true,
|
||||
},
|
||||
)
|
||||
|
||||
for _, api := range selectedApis {
|
||||
switch api {
|
||||
case Web3Namespace:
|
||||
apis = append(apis,
|
||||
rpc.API{
|
||||
Namespace: Web3Namespace,
|
||||
Version: apiVersion,
|
||||
Service: web3.NewAPI(),
|
||||
Public: true,
|
||||
},
|
||||
)
|
||||
case PersonalNamespace:
|
||||
apis = append(apis,
|
||||
rpc.API{
|
||||
|
Loading…
Reference in New Issue
Block a user