fix warnings
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user