Skip to content

Commit

Permalink
inroduce idl account getter (#2367)
Browse files Browse the repository at this point in the history
  • Loading branch information
frolovdev committed Jan 23, 2023
1 parent b4459f2 commit 79a0666
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ts/packages/anchor/src/program/namespace/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ export class AccountClient<
}
private _coder: Coder;

/**
* Returns the idl account.
*/
get idlAccount(): A {
return this._idlAccount;
}
private _idlAccount: A;

constructor(
Expand Down

1 comment on commit 79a0666

@vercel
Copy link

@vercel vercel bot commented on 79a0666 Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anchor-docs – ./

anchor-docs-200ms.vercel.app
www.anchor-lang.com
anchor-lang.com
anchor-docs-git-master-200ms.vercel.app

Please sign in to comment.