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

Create TestCoin feat: add TestCoin helper class (#3445) #3460

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

crStiv
Copy link

@crStiv crStiv commented Dec 9, 2024

Release Notes

In this release, we:

  • Added the TestCoin helper class to simplify the creation of test Coin objects for testing purposes.
  • Introduced two static methods:
    • TestCoin.create: Generates a single test coin with customizable parameters.
    • TestCoin.many: Generates an array of test coins based on shared parameters.

Summary

This pull request introduces the TestCoin helper class, designed to streamline the creation of test Coin objects. The create method allows for the generation of a single coin with default or customized properties, while the many method supports bulk creation of coins. These utilities will improve the efficiency and readability of tests that rely on Coin objects.


Related Issues


Breaking Changes

None.


Checklist

  • All changes are covered by tests.
  • All changes are documented.
  • I reviewed the entire PR myself.
  • I described all Breaking Changes (or there's none).

Allow edits by maintainers.

Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2024 8:05pm
ts-docs-api ❌ Failed (Inspect) Dec 14, 2024 8:05pm

@fuel-cla-bot
Copy link

fuel-cla-bot bot commented Dec 9, 2024

Thanks for the contribution! Before we can merge this, we need @crStiv to sign the Fuel Labs Contributor License Agreement.

Copy link

vercel bot commented Dec 9, 2024

@crStiv is attempting to deploy a commit to the Fuel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@Dhaiwat10
Copy link
Member

Hey @crStiv i think the file is missing an extension (.ts)

@crStiv
Copy link
Author

crStiv commented Dec 14, 2024

Hey @crStiv i think the file is missing an extension (.ts)

hey, I redid this, is it good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TestCoin helper class
2 participants