Update anchor.Wallet to AnchorWallet

This commit is contained in:
Jackson Jessup 2022-07-30 19:13:06 -04:00
parent 0b806d49e5
commit 46419b7624
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ export function getWorkspace(
cluster === "localnet" ? "http://localhost:8899" : clusterApiUrl(cluster);
const provider = new anchor.AnchorProvider(
new Connection(url, { commitment: "confirmed" }),
new anchor.Wallet(wallet),
new AnchorWallet(wallet),
{ commitment: "confirmed" }
);
return new anchor.Program(idl, programId, provider);