Skip to content

Commit

Permalink
forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jul 25, 2024
1 parent 4edd506 commit 6a3418e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ func (s *BlockChainAPI) GetBalance(ctx context.Context, address common.Address,
if forwardURL := s.b.GetPreconfirmationForwardingURL(); forwardURL != "" {
log.Info("forwarding balance request", "url", forwardURL)
if blockNr, ok := blockNrOrHash.Number(); ok {
log.Info("forwarding balance request", "blockNr", blockNr.Int64())
bal, err := forward[string](forwardURL, "eth_getBalance", []interface{}{address.Hex(), blockNr.Int64()})
log.Info("forwarding balance request", "blockNr", blockNr.String())
bal, err := forward[string](forwardURL, "eth_getBalance", []interface{}{address.Hex(), blockNr.String()})
if err == nil && bal != nil {
return (*hexutil.Big)(hexutil.MustDecodeBig(*bal)), nil
}
Expand Down

0 comments on commit 6a3418e

Please sign in to comment.