Skip to content

Commit

Permalink
Add dialect connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Tsymbal authored and tsmbl committed May 25, 2022
1 parent b15422a commit 6a8a800
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/monitor/dialect-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@ export abstract class DialectConnection {
const wallet = Wallet_.embedded(keypair.secretKey);
const RPC_URL = process.env.RPC_URL || 'http://localhost:8899';
console.log('RPC url', RPC_URL);
const dialectConnection = new Connection(RPC_URL, {
commitment: 'recent',
});
const dialectConnection = new Connection(RPC_URL, 'recent');
const dialectProvider = new Provider(
dialectConnection,
wallet,
Provider.defaultOptions(),
);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const NETWORK_NAME: 'devnet' | 'localnet' =
process.env.NETWORK_NAME ?? 'localnet';
Expand Down

0 comments on commit 6a8a800

Please sign in to comment.