File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @magicblock-labs/soar-sdk" ,
3
- "version" : " 0.1.20 " ,
3
+ "version" : " 0.1.21 " ,
4
4
"description" : " Sdk bindings for the SOAR smart contract." ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -661,12 +661,12 @@ export class SoarProgram {
661
661
public async fetchAllLeaderboardAccounts (
662
662
memcmp ?: Buffer | GetProgramAccountsFilter [ ]
663
663
) : Promise < LeaderBoardAccount [ ] > {
664
- const achievements = await this . program . account . achievement . all ( memcmp ) ;
664
+ const leaderboards = await this . program . account . leaderBoard . all ( memcmp ) ;
665
665
666
- return achievements . map ( ( achievement ) =>
666
+ return leaderboards . map ( ( leaderboard ) =>
667
667
LeaderBoardAccount . fromIdlAccount (
668
- achievement . account ,
669
- achievement . publicKey
668
+ leaderboard . account ,
669
+ leaderboard . publicKey
670
670
)
671
671
) ;
672
672
}
You can’t perform that action at this time.
0 commit comments