Skip to content

Commit

Permalink
Merge pull request #1338 from nanometerzhu/patch-1
Browse files Browse the repository at this point in the history
fix: count parameter in PinkLoggerContract.getLog not working
  • Loading branch information
Leechael authored Jul 9, 2023
2 parents 5746586 + 476e8f7 commit ced2d19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/packages/sdk/src/contracts/PinkLoggerContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export class PinkLoggerContractPromise extends PinkContractPromise {
}
}

// @FIXME from & counts
async getLog(contractId: AccountId | string, from: number = 0, counts: number = 100) {
const api = this.api as ApiPromise

Expand All @@ -70,7 +69,7 @@ export class PinkLoggerContractPromise extends PinkContractPromise {
action: 'GetLog',
contract: contractId,
from,
counts,
count: counts,
})),
},
})
Expand Down

0 comments on commit ced2d19

Please sign in to comment.