Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions services/requester/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func (e *EVM) Call(
Uint64("cadence-height", height).
Int64("evm-height", evmHeight).
Str("from", from.String()).
Str("data", string(data)).
Str("data", hex.EncodeToString(data)).
Msg("failed to execute call")
}
return nil, fmt.Errorf("failed to execute script at height: %d, with: %w", height, err)
Expand Down Expand Up @@ -529,6 +529,15 @@ func (e *EVM) EstimateGas(
[]cadence.Value{hexEncodedTx, hexEncodedAddress},
)
if err != nil {
if !errors.Is(err, errs.ErrHeightOutOfRange) {
e.logger.Error().
Err(err).
Uint64("cadence-height", height).
Int64("evm-height", evmHeight).
Str("from", from.String()).
Str("data", hex.EncodeToString(data)).
Msg("failed to execute estimateGas")
}
return 0, fmt.Errorf("failed to execute script at height: %d, with: %w", height, err)
}

Expand All @@ -541,7 +550,9 @@ func (e *EVM) EstimateGas(

e.logger.Debug().
Uint64("gas", gasConsumed).
Msg("gas estimation executed")
Int64("evm-height", evmHeight).
Uint64("cadence-height", height).
Msg("estimateGas executed")

return gasConsumed, nil
}
Expand Down