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

Commit

Permalink
merge pr #821 (#866)
Browse files Browse the repository at this point in the history
Co-authored-by: Freddy Li <[email protected]>
  • Loading branch information
freddyli7 and Freddy Li authored Apr 19, 2021
1 parent c002b85 commit 3946de3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
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

0 comments on commit 3946de3

Please sign in to comment.