TS: fixed oracleAccount.getBalance

This commit is contained in:
Conner Gallagher 2022-07-15 17:04:23 -06:00
parent a17915f437
commit d3a3645662
1 changed files with 1 additions and 1 deletions

View File

@ -3455,7 +3455,7 @@ export class OracleAccount {
const oracle = await this.loadData();
const escrow = await spl.getAccount(
this.program.provider.connection,
oracle.escrow
oracle.tokenAccount
);
return Number(escrow.amount);
}