Skip to content
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

Merged
merged 3 commits into from
Oct 6, 2021

Conversation

kamescg
Copy link
Contributor

@kamescg kamescg commented Oct 6, 2021

Adds function to get ring buffer cardinality

function getBufferCardinality() external view override returns (uint32) {
        return drawRingBuffer.cardinality;
    }

@kamescg kamescg added the enhancement New feature or request label Oct 6, 2021
@kamescg kamescg self-assigned this Oct 6, 2021
@@ -39,6 +39,13 @@ describe('DrawHistory', () => {
await drawHistory.setManager(wallet1.address);
});

describe.only('getBufferCardinality()', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
describe.only('getBufferCardinality()', () => {
describe('getBufferCardinality()', () => {

Comment on lines 138 to 141
// @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 () => { });
});
Copy link
Contributor

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?

@asselstine
Copy link
Contributor

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 () => { });
});
Copy link
Contributor

Choose a reason for hiding this comment

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

✂️

@asselstine asselstine merged commit dbb4c61 into master Oct 6, 2021
@asselstine asselstine deleted the pool-1724-drawhistoryprizedistributionhistory branch October 6, 2021 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants