Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

merge pr #821 #866

Merged
merged 1 commit into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ corresponding Ethereum API namespace:

### 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.
* (types) [\#503](https://github.com/cosmos/ethermint/pull/503) The `types.DenomDefault` constant for `"aphoton"` has been renamed to `types.AttoPhoton`.

### Improvements
Expand Down
30 changes: 15 additions & 15 deletions rpc/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ func GetAPIs(clientCtx client.Context, selectedApis []string, keys ...ethsecp256

var apis []rpc.API

apis = append(apis,
rpc.API{
Namespace: EthNamespace,
Version: apiVersion,
Service: ethAPI,
Public: true,
})

apis = append(apis, rpc.API{
Namespace: EthNamespace,
Version: apiVersion,
Service: filters.NewAPI(clientCtx, backend),
Public: true,
})

for _, api := range selectedApis {
switch api {
case Web3Namespace:
Expand All @@ -46,21 +61,6 @@ func GetAPIs(clientCtx client.Context, selectedApis []string, keys ...ethsecp256
Public: true,
},
)
case EthNamespace:
apis = append(apis,
rpc.API{
Namespace: EthNamespace,
Version: apiVersion,
Service: ethAPI,
Public: true,
},
rpc.API{
Namespace: EthNamespace,
Version: apiVersion,
Service: filters.NewAPI(clientCtx, backend),
Public: true,
},
)
case PersonalNamespace:
apis = append(apis,
rpc.API{
Expand Down