Skip to content

Commit

Permalink
test: remove unused code form the "e2e/test/helpers/rpc.ts" file
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniiZaitsevCW committed Jun 11, 2024
1 parent 1202d1d commit dc8b285
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions e2e/test/helpers/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit dc8b285

Please sign in to comment.