Skip to content

Commit

Permalink
[R4R] - {develop}: Log/txstatus element not found (#1264)
Browse files Browse the repository at this point in the history
* log: remove txstatus_element_not_found

* log: handle nil pointer

* api_backend: remove the unformatted space

---------

Co-authored-by: Sha3n <qingruishen@yahoo.com>
  • Loading branch information
bradyjoestar and Sha3nS committed Jul 20, 2023
1 parent eb5506b commit ba9a7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l2geth/eth/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"context"
"errors"
"fmt"
"github.com/mantlenetworkio/mantle/l2geth/consensus"
"math/big"

"github.com/mantlenetworkio/mantle/l2geth/accounts"
"github.com/mantlenetworkio/mantle/l2geth/common"
"github.com/mantlenetworkio/mantle/l2geth/common/math"
"github.com/mantlenetworkio/mantle/l2geth/consensus"
"github.com/mantlenetworkio/mantle/l2geth/core"
"github.com/mantlenetworkio/mantle/l2geth/core/bloombits"
"github.com/mantlenetworkio/mantle/l2geth/core/rawdb"
Expand Down Expand Up @@ -241,7 +241,7 @@ func (b *EthAPIBackend) GetReceipts(ctx context.Context, hash common.Hash) (type
func (b *EthAPIBackend) GetTxStatusByHash(ctx context.Context, blockNumber uint64) (*types.TxStatusResponse, error) {
txStatus, err := b.eth.syncService.GetTxStatusByNumber(blockNumber)
if err != nil {
log.Error("GetTxStatusByHash", "status error", err.Error())
log.Info("getTxStatusByHash", "msg", err.Error())
}
return txStatus, err
}
Expand Down

0 comments on commit ba9a7f7

Please sign in to comment.