diff --git a/Makefile b/Makefile index 9749e9bb19..20da72d2eb 100644 --- a/Makefile +++ b/Makefile @@ -160,7 +160,7 @@ release-dry-run: SIMAPP = github.com/crypto-org-chain/cronos/app # Install the runsim binary with a temporary workaround of entering an outside -# directory as the "go get" command ignores the -mod option and will polute the +# directory as the "go get" command ignores the -mod option and will pollute the # go.{mod, sum} files. # # ref: https://github.com/golang/go/issues/30515 diff --git a/app/app.go b/app/app.go index 52c64b2396..9b8a08ff02 100644 --- a/app/app.go +++ b/app/app.go @@ -49,6 +49,7 @@ import ( evmhandlers "github.com/crypto-org-chain/cronos/x/cronos/keeper/evmhandlers" cronosprecompiles "github.com/crypto-org-chain/cronos/x/cronos/keeper/precompiles" "github.com/crypto-org-chain/cronos/x/cronos/middleware" + // force register the extension json-rpc. _ "github.com/crypto-org-chain/cronos/x/cronos/rpc" cronostypes "github.com/crypto-org-chain/cronos/x/cronos/types" @@ -57,6 +58,7 @@ import ( e2eekeyring "github.com/crypto-org-chain/cronos/x/e2ee/keyring" e2eetypes "github.com/crypto-org-chain/cronos/x/e2ee/types" "github.com/ethereum/go-ethereum/common" + // Force-load the tracer engines to trigger registration "github.com/ethereum/go-ethereum/core/vm" _ "github.com/ethereum/go-ethereum/eth/tracers/js" diff --git a/x/cronos/rpc/api.go b/x/cronos/rpc/api.go index 51e64a989c..4c645cbf92 100644 --- a/x/cronos/rpc/api.go +++ b/x/cronos/rpc/api.go @@ -204,7 +204,7 @@ func (api *CronosAPI) GetTransactionReceiptsByBlock(blockNrOrHash rpctypes.Block "blockNumber": hexutil.Uint64(blockNumber), "transactionIndex": hexutil.Uint64(txIndex), - // sender and receiver (contract or EOA) addreses + // sender and receiver (contract or EOA) addresses "from": from, "to": txData.To(), "type": hexutil.Uint(txData.Type()), @@ -338,7 +338,7 @@ func (api *CronosAPI) ReplayBlock(blockNrOrHash rpctypes.BlockNumberOrHash, post "blockNumber": hexutil.Uint64(blockNumber), "transactionIndex": hexutil.Uint64(txIndex), - // sender and receiver (contract or EOA) addreses + // sender and receiver (contract or EOA) addresses "from": from, "to": txData.GetTo(), }