Skip to content

Commit

Permalink
fix when contract reader fails on latestRoundData call
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Sep 30, 2024
1 parent bf72809 commit 4c5d2eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (d *DynamicPriceGetter) performBatchCall(ctx context.Context, chainID uint6
for i, read := range offchainAggregatorRespSlice {
val, readErr := read.GetResult()
if readErr != nil {
respErr = multierr.Append(respErr, fmt.Errorf("error with method call %v: %w", batchCalls.decimalCalls[i].MethodName(), readErr))
respErr = multierr.Append(respErr, fmt.Errorf("error with contract reader readName %v: %w", read.ReadName, readErr))
continue
}
if read.ReadName == DECIMALS_METHOD_NAME {
Expand Down

0 comments on commit 4c5d2eb

Please sign in to comment.