This commit is contained in:
Conner Gallagher 2022-07-14 14:43:01 -06:00
parent bbc246ba01
commit 3463fa3f9c
2 changed files with 6 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@switchboard-xyz/switchboard-v2",
"version": "0.0.119",
"version": "0.0.120",
"license": "MIT",
"author": "mitch@switchboard.xyz",
"description": "API wrapper for intergating with the Switchboardv2 program",

View File

@ -1491,19 +1491,11 @@ export class AggregatorAccount {
queueAccount,
this
);
// const escrow = await spl.getAssociatedTokenAddress(
// params.tokenMint,
// this.program.programId,
// leaseAccount.publicKey
// );
// const escrow = await spl.getAssociatedTokenAddress(
// params.tokenMint,
// leaseAccount.publicKey,
// true
// );
const escrow = (await leaseAccount.loadData()).escrow;
console.log(`ESCROW: ${escrow.toBase58()}`);
console.log(`ESCROW: ${escrow.toBase58()}`);
const escrow = await spl.getAssociatedTokenAddress(
params.tokenMint,
leaseAccount.publicKey,
true
);
const [feedPermissionAccount, feedPermissionBump] =
PermissionAccount.fromSeed(
this.program,