Merge pull request #51 from switchboard-xyz/AnchorWallet
Update sbv2-utils to use AnchorWallet from switchboard-v2
This commit is contained in:
commit
f22aa8cf1b
|
@ -176,7 +176,7 @@ export function getWorkspace(
|
||||||
cluster === "localnet" ? "http://localhost:8899" : clusterApiUrl(cluster);
|
cluster === "localnet" ? "http://localhost:8899" : clusterApiUrl(cluster);
|
||||||
const provider = new anchor.AnchorProvider(
|
const provider = new anchor.AnchorProvider(
|
||||||
new Connection(url, { commitment: "confirmed" }),
|
new Connection(url, { commitment: "confirmed" }),
|
||||||
new anchor.Wallet(wallet),
|
new AnchorWallet(wallet),
|
||||||
{ commitment: "confirmed" }
|
{ commitment: "confirmed" }
|
||||||
);
|
);
|
||||||
return new anchor.Program(idl, programId, provider);
|
return new anchor.Program(idl, programId, provider);
|
||||||
|
|
Loading…
Reference in New Issue