From dc8b2855ffc86a27c637e558b84297fd7c39231b Mon Sep 17 00:00:00 2001 From: Evgenii Zaitsev Date: Wed, 12 Jun 2024 00:12:30 +0700 Subject: [PATCH] test: remove unused code form the "e2e/test/helpers/rpc.ts" file --- e2e/test/helpers/rpc.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/e2e/test/helpers/rpc.ts b/e2e/test/helpers/rpc.ts index d08371d62..23d5af037 100644 --- a/e2e/test/helpers/rpc.ts +++ b/e2e/test/helpers/rpc.ts @@ -57,16 +57,7 @@ const providerOptions: JsonRpcApiProviderOptions = { batchMaxCount: 1, // Do not unite the request in batches }; -export let ETHERJS = new JsonRpcProvider(providerUrl, undefined, providerOptions); - -export function updateProviderUrl(newUrl: string) { - providerUrl = newUrl; - ETHERJS = new JsonRpcProvider(providerUrl); -} - -export function getProvider() { - return ETHERJS; -} +export const ETHERJS = new JsonRpcProvider(providerUrl, undefined, providerOptions); // Configure RPC logger if RPC_LOG env-var is configured. function log(event: any) { @@ -417,7 +408,7 @@ export async function pollForTransaction( throw new Error("Transaction not found"); } tx = await tx; - const txHash = (typeof tx === "string") ? tx : tx.hash; + const txHash = typeof tx === "string" ? tx : tx.hash; const [txReceipt] = await pollForTransactions([txHash], options); return txReceipt; }