fix warnings

This commit is contained in:
thesn10
2026-05-18 22:13:09 +02:00
parent 2a89352212
commit 9eb2429a21
5 changed files with 10 additions and 17 deletions

View File

@@ -7,7 +7,6 @@ import { AnchorProvider, Program, BN } from "@coral-xyz/anchor";
import type { Idl } from "@coral-xyz/anchor";
import descroIdl from "./idl/descro.json";
import {
ESCROW_PROGRAM_ID,
REGISTRY_PROGRAM_ID,
deriveEscrowPda,
deriveVaultPda,
@@ -22,11 +21,7 @@ export class EscrowClient {
constructor(provider: AnchorProvider) {
this.provider = provider;
this.program = new Program(
descroIdl as Idl,
new PublicKey(ESCROW_PROGRAM_ID),
provider
);
this.program = new Program(descroIdl as Idl, provider);
}
async buildCreateEscrow(params: {

View File

@@ -2,7 +2,7 @@ import { PublicKey, TransactionInstruction, SystemProgram } from "@solana/web3.j
import { AnchorProvider, Program } from "@coral-xyz/anchor";
import type { Idl } from "@coral-xyz/anchor";
import registryIdl from "./idl/descro_ext_resolvers.json";
import { REGISTRY_PROGRAM_ID, deriveResolverEntryPda } from "./pda";
import { deriveResolverEntryPda } from "./pda";
import type { ResolverEntry, ResolverEntryWithPda, ResolverType } from "./types";
export class RegistryClient {
@@ -11,11 +11,7 @@ export class RegistryClient {
constructor(provider: AnchorProvider) {
this.provider = provider;
this.program = new Program(
registryIdl as Idl,
new PublicKey(REGISTRY_PROGRAM_ID),
provider
);
this.program = new Program(registryIdl as Idl, provider);
}
async buildRegisterResolver(params: {