Update anchor.Wallet to AnchorWallet
This commit is contained in:
parent
0b806d49e5
commit
46419b7624
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue