Skip to content

Commit

Permalink
fix FailoverRpcProvider import
Browse files Browse the repository at this point in the history
  • Loading branch information
kdonthi committed Aug 27, 2024
1 parent c083610 commit 3808399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/lib/services/provider/provider.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import type {
} from "./provider.service.types";
import { JsonRpcProvider } from "near-api-js/lib/providers";
import type { SignedTransaction } from "near-api-js/lib/transaction";
import {FailoverRpcProvider} from "@near-js/providers";

export class Provider implements ProviderService {
private provider: nearAPI.providers.FailoverRpcProvider;

constructor(urls: Array<string>) {
this.provider = new nearAPI.providers.FailoverRpcProvider(
this.provider = new FailoverRpcProvider(
this.urlsToProviders(urls)
);
}
Expand Down

0 comments on commit 3808399

Please sign in to comment.