From 5d27553e819380cc3537843d2e6057c3bcb1454a Mon Sep 17 00:00:00 2001 From: 0xdapper <94534135+0xdapper@users.noreply.github.com> Date: Sun, 19 Mar 2023 21:12:20 +0530 Subject: [PATCH] fix: make bundleHash from relay response optional --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a18b266..2bbf6c5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -360,7 +360,7 @@ export class FlashbotsBundleProvider extends providers.JsonRpcProvider { opts?.minTimestamp ), receipts: () => this.fetchReceipts(bundleTransactions), - bundleHash: response.result.bundleHash + bundleHash: response?.result?.bundleHash } }