diff --git a/js/stateless.js/src/rpc.ts b/js/stateless.js/src/rpc.ts index 6f4f483d9..3cc1e6666 100644 --- a/js/stateless.js/src/rpc.ts +++ b/js/stateless.js/src/rpc.ts @@ -61,17 +61,6 @@ import { defaultTestStateTreeAccounts } from './constants'; import BN from 'bn.js'; import { toCamelCase, toHex } from './utils/conversion'; -type ClientSubscriptionId = number; - -// // Define an interface that includes the methods you need from Connection -// interface ConnectionInterface { -// sendTransaction(transaction: any, options?: any): Promise; -// getLatestBlockhash(): Promise; -// confirmTransaction(signature: string, commitment?: string): Promise; -// commitment: string; -// // Add other methods and properties as needed -// } - import { proofFromJsonStruct, negateAndCompressProof, @@ -507,7 +496,6 @@ const mockAddressQueue = defaultTestStateTreeAccounts().addressQueue; * */ export class Rpc extends Connection implements CompressionApiInterface { - // connection: Connection; compressionApiEndpoint: string; proverEndpoint: string; @@ -527,7 +515,6 @@ export class Rpc extends Connection implements CompressionApiInterface { ) { super(endpoint, config || 'confirmed'); - // this.connection = new Connection(endpoint, config || 'confirmed'); this.compressionApiEndpoint = compressionApiEndpoint; this.proverEndpoint = proverEndpoint; } diff --git a/js/stateless.js/src/test-helpers/test-rpc/test-rpc.ts b/js/stateless.js/src/test-helpers/test-rpc/test-rpc.ts index eab1e6b55..89cc956cc 100644 --- a/js/stateless.js/src/test-helpers/test-rpc/test-rpc.ts +++ b/js/stateless.js/src/test-helpers/test-rpc/test-rpc.ts @@ -140,7 +140,6 @@ export async function getTestRpc( * For advanced testing use photon: https://github.com/helius-labs/photon */ export class TestRpc extends Connection implements CompressionApiInterface { - // connection: Connection; compressionApiEndpoint: string; proverEndpoint: string; merkleTreeAddress: PublicKey; @@ -173,10 +172,6 @@ export class TestRpc extends Connection implements CompressionApiInterface { ) { super(endpoint, connectionConfig || 'confirmed'); - // this.connection = new Connection( - // endpoint, - // connectionConfig || 'confirmed', - // ); this.compressionApiEndpoint = compressionApiEndpoint; this.proverEndpoint = proverEndpoint;