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

fixes error message from IronFlag #3935

Merged
merged 1 commit into from
May 26, 2023
Merged

fixes error message from IronFlag #3935

merged 1 commit into from
May 26, 2023

Conversation

hughy
Copy link
Contributor

@hughy hughy commented May 26, 2023

Summary

the IronFlag takes a 'largerThan' parameter but prints an error message using the 'minimum'. this results in a misleading error message. for example, when using a fee of 0 ORE:

'Error: The minimum fee is $ORE 0'

  • changes 'largerThan' to 'minimum'
  • changes logic to use less than instead of less than or equal to trigger error messages
  • changes flag usage to use minimums of 1 ORE for fees

Testing Plan

manual testing:

before:
image

after:
image

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

the IronFlag takes a 'largerThan' parameter but prints an error message using
the 'minimum'. this results in a misleading error message. for example, when
using a fee of 0 ORE:

'Error: The minimum fee is $ORE 0'

- changes 'largerThan' to 'minimum'
- changes logic to use less than instead of less than or equal to trigger error
  messages
- changes flag usage to use minimums of 1 ORE for fees
@hughy hughy requested a review from a team as a code owner May 26, 2023 19:12
@hughy hughy merged commit 185beb8 into staging May 26, 2023
@hughy hughy deleted the fix/parse-iron-error branch May 26, 2023 19:55
jowparks pushed a commit that referenced this pull request Jun 21, 2023
the IronFlag takes a 'largerThan' parameter but prints an error message using
the 'minimum'. this results in a misleading error message. for example, when
using a fee of 0 ORE:

'Error: The minimum fee is $ORE 0'

- changes 'largerThan' to 'minimum'
- changes logic to use less than instead of less than or equal to trigger error
  messages
- changes flag usage to use minimums of 1 ORE for fees
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.

2 participants