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

Add tokenBuilder decimals max/min limits #1297

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

hectorgomezv
Copy link
Member

Changes

  • Adds tokenBuilder decimals max/min limits.

@hectorgomezv hectorgomezv self-assigned this Mar 13, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner March 13, 2024 11:36
@coveralls
Copy link

coveralls commented Mar 13, 2024

Pull Request Test Coverage Report for Build 8266052282

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 93.721%

Totals Coverage Status
Change from base Build 8263873168: 0.01%
Covered Lines: 6380
Relevant Lines: 6582

💛 - Coveralls

@@ -5,7 +5,7 @@ import { Token, TokenType } from '@/domain/tokens/entities/token.entity';
export function tokenBuilder(): IBuilder<Token> {
return new Builder<Token>()
.with('address', faker.finance.ethereumAddress())
.with('decimals', faker.number.int())
.with('decimals', faker.number.int({ min: 0, max: 32 }))
Copy link
Member

Choose a reason for hiding this comment

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

Nit: let's add a comment regarding the reasoning for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 5c4f7df, thanks!

@hectorgomezv hectorgomezv merged commit 959d8cf into main Mar 13, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the limit-token-builder-decimals branch March 13, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants