diff --git a/ethstore.go b/ethstore.go index 1d9adad..38708dc 100644 --- a/ethstore.go +++ b/ethstore.go @@ -643,8 +643,8 @@ func batchRequestReceipts(ctx context.Context, elClient *gethRPC.Client, txHashe func requestReceipts(ctx context.Context, elClient *gethRPC.Client, blockNumber uint64) ([]*TxReceipt, error) { txReceipts := make([]*TxReceipt, 0) - - ioErr := elClient.CallContext(ctx, &txReceipts, "eth_getBlockReceipts", blockNumber) + blockNumberHex := fmt.Sprintf("0x%x", blockNumber) + ioErr := elClient.CallContext(ctx, &txReceipts, "eth_getBlockReceipts", blockNumberHex) if ioErr != nil { return nil, fmt.Errorf("io-error when fetching tx-receipts: %w", ioErr) }