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", "name": "@switchboard-xyz/switchboard-v2",
"version": "0.0.119", "version": "0.0.120",
"license": "MIT", "license": "MIT",
"author": "mitch@switchboard.xyz", "author": "mitch@switchboard.xyz",
"description": "API wrapper for intergating with the Switchboardv2 program", "description": "API wrapper for intergating with the Switchboardv2 program",

View File

@ -1491,19 +1491,11 @@ export class AggregatorAccount {
queueAccount, queueAccount,
this this
); );
// const escrow = await spl.getAssociatedTokenAddress( const escrow = await spl.getAssociatedTokenAddress(
// params.tokenMint, params.tokenMint,
// this.program.programId, leaseAccount.publicKey,
// leaseAccount.publicKey true
// ); );
// 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 [feedPermissionAccount, feedPermissionBump] = const [feedPermissionAccount, feedPermissionBump] =
PermissionAccount.fromSeed( PermissionAccount.fromSeed(
this.program, this.program,