Skip to content

Commit

Permalink
Merge pull request #379 from onflow/gregor/bugfix-log
Browse files Browse the repository at this point in the history
Bugfix nil value in log
  • Loading branch information
sideninja authored Jul 24, 2024
2 parents e89fa2b + 6c9326a commit 15e657a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ func (b *BlockChainAPI) GetBalance(
l := b.logger.With().
Str("endpoint", "getBalance").
Str("address", address.String()).
Str("blockNumberOrHash", blockNumberOrHash.String()).
Logger()

if err := rateLimit(ctx, b.limiter, l); err != nil {
Expand Down Expand Up @@ -523,7 +522,6 @@ func (b *BlockChainAPI) Call(
l := b.logger.With().
Str("endpoint", "call").
Str("args", fmt.Sprintf("%v", args)).
Str("numberHash", blockNumberOrHash.String()).
Logger()

if err := rateLimit(ctx, b.limiter, l); err != nil {
Expand Down Expand Up @@ -634,7 +632,6 @@ func (b *BlockChainAPI) GetTransactionCount(
l := b.logger.With().
Str("endpoint", "getTransactionCount").
Str("address", address.String()).
Str("hashNumber", blockNumberOrHash.String()).
Logger()

if err := rateLimit(ctx, b.limiter, l); err != nil {
Expand Down Expand Up @@ -681,7 +678,6 @@ func (b *BlockChainAPI) EstimateGas(
l := b.logger.With().
Str("endpoint", "estimateGas").
Str("args", fmt.Sprintf("%v", args)).
Str("hashNumber", blockNumberOrHash.String()).
Logger()

if err := rateLimit(ctx, b.limiter, l); err != nil {
Expand Down Expand Up @@ -722,7 +718,6 @@ func (b *BlockChainAPI) GetCode(
l := b.logger.With().
Str("endpoint", "getCode").
Str("address", address.String()).
Str("hashNumber", blockNumberOrHash.String()).
Logger()

if err := rateLimit(ctx, b.limiter, l); err != nil {
Expand Down

0 comments on commit 15e657a

Please sign in to comment.