Skip to content

Commit

Permalink
revert tx.go changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 committed Sep 23, 2024
1 parent c7400ab commit c12b68a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 51 deletions.
8 changes: 0 additions & 8 deletions evmrpc/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ func NewTransactionAPI(tmClient rpcclient.Client, k *keeper.Keeper, ctxProvider
func (t *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common.Hash) (result map[string]interface{}, returnErr error) {
startTime := time.Now()
defer recordMetrics("eth_getTransactionReceipt", t.connectionType, startTime, returnErr == nil)
return t.getTransactionReceipt(ctx, hash)
}

func (t *TransactionAPI) getTransactionReceipt(ctx context.Context, hash common.Hash) (map[string]interface{}, error) {
sdkctx := t.ctxProvider(LatestCtxHeight)
receipt, err := t.keeper.GetReceipt(sdkctx, hash)
if err != nil {
Expand Down Expand Up @@ -105,10 +101,6 @@ func (t *TransactionAPI) GetTransactionByBlockHashAndIndex(ctx context.Context,
func (t *TransactionAPI) GetTransactionByHash(ctx context.Context, hash common.Hash) (result *ethapi.RPCTransaction, returnErr error) {
startTime := time.Now()
defer recordMetrics("eth_getTransactionByHash", t.connectionType, startTime, returnErr == nil)
return t.getTransactionByHash(ctx, hash, false)
}

func (t *TransactionAPI) getTransactionByHash(ctx context.Context, hash common.Hash, includeSynthetic bool) (*ethapi.RPCTransaction, error) {
sdkCtx := t.ctxProvider(LatestCtxHeight)
// first try get from mempool
for page := 1; page <= UnconfirmedTxQueryMaxPage; page++ {
Expand Down
29 changes: 0 additions & 29 deletions evmrpc/tx_sei.go

This file was deleted.

14 changes: 0 additions & 14 deletions evmrpc/tx_sei_test.go

This file was deleted.

0 comments on commit c12b68a

Please sign in to comment.