-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update(RingBuffers): add getBufferCardinality to DrawHistory/PrizeDistributionHistory #203
update(RingBuffers): add getBufferCardinality to DrawHistory/PrizeDistributionHistory #203
Conversation
test/DrawHistory.test.ts
Outdated
@@ -39,6 +39,13 @@ describe('DrawHistory', () => { | |||
await drawHistory.setManager(wallet1.address); | |||
}); | |||
|
|||
describe.only('getBufferCardinality()', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe.only('getBufferCardinality()', () => { | |
describe('getBufferCardinality()', () => { |
// @TODO: Create PrizeDistributionHistory harness smart contract to expose | ||
describe('_estimateDrawId()', () => { | ||
it('should return Draw ID 0 when no history', async () => {}); | ||
it('should return Draw ID 0 when no history', async () => { }); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove or add this test?
Let's get this done- should be merged before the name change PR |
@@ -130,7 +137,7 @@ describe('PrizeDistributionHistory', () => { | |||
|
|||
// @TODO: Create PrizeDistributionHistory harness smart contract to expose | |||
describe('_estimateDrawId()', () => { | |||
it('should return Draw ID 0 when no history', async () => {}); | |||
it('should return Draw ID 0 when no history', async () => { }); | |||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✂️
Adds function to get ring buffer cardinality