Skip to content

Commit

Permalink
update provider to JsonRpcProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
shkangr committed Mar 8, 2024
1 parent 12f8731 commit ab1093e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions bridge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,7 @@ process.on("uncaughtException", console.error);
const kmsAddress = kmsAddresses[0];
console.log(kmsAddress);

const providerMain = new ethers.providers.JsonRpcProvider(KMS_PROVIDER_URL);
// const providerSub = new ethers.providers.JsonRpcProvider(
// KMS_PROVIDER_SUB_URL
// );

const provider = new ethers.providers.FallbackProvider(
[
{ provider: providerMain, priority: 1, weight: 2 },
// { provider: providerSub, priority: 2, weight: 1 },
],
1
);
const provider = new ethers.providers.JsonRpcProvider(KMS_PROVIDER_URL);

const signer = new KMSNCGSigner(KMS_PROVIDER_REGION, KMS_PROVIDER_KEY_ID, {
accessKeyId: KMS_PROVIDER_AWS_ACCESSKEY,
Expand Down
4 changes: 2 additions & 2 deletions bridge/src/monitors/bsc-burn-event-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { TransactionLocation } from "../types/transaction-location";
import { ethers } from "ethers";

export class BscBurnEventMonitor extends TriggerableMonitor<EventData> {
private readonly _provider: ethers.providers.FallbackProvider;
private readonly _provider: ethers.providers.JsonRpcProvider;
private readonly _contract: ethers.Contract;
private readonly _contractDescription: ContractDescription;
private readonly _confirmations: number;

constructor(
provider: ethers.providers.FallbackProvider,
provider: ethers.providers.JsonRpcProvider,
contractDescription: ContractDescription,
latestTransactionLocation: TransactionLocation | null,
confirmations: number
Expand Down

0 comments on commit ab1093e

Please sign in to comment.