Merge pull request #51 from switchboard-xyz/AnchorWallet

Update sbv2-utils to use AnchorWallet from switchboard-v2
This commit is contained in:
gallynaut 2022-07-31 19:35:30 -06:00 committed by GitHub
commit f22aa8cf1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);