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

Align Forest and Lotus send behavior #2700

Merged
merged 64 commits into from
May 2, 2023

Conversation

jdjaustin
Copy link
Contributor

@jdjaustin jdjaustin commented Mar 22, 2023

Summary of changes

Changes introduced in this pull request:

  • Add support to Forest to specify FIL in all units supported in Forest wallet in the amount specified in the send command. Subtasks:
  • Add support of similar behaviour.
  • Add tests covering the different denominations.
  • Update the documentation accordingly. (will be covered under issue Document forest send in the user's-guide and in the README #2029 )
  • Make sure sendFIL still works in the JavaScript console (will be covered under another PR)

Reference issue to close (if applicable)

Closes associated tasks in issue #2668

Other information and links

Task to update documentation will be covered under issue #2029 and task to add support for multiple units in JavaScript console will be covered under another PR tied to issue #2668.

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation, (see note above)
  • I have added tests that prove my fix is effective or that my feature works
    (if possible),
  • I have made sure the
    CHANGELOG is
    up-to-date. All user-facing changes should be reflected in this document.

@CLAassistant
Copy link

CLAassistant commented Mar 23, 2023

CLA assistant check
All committers have signed the CLA.

@jdjaustin

This comment was marked as resolved.

let amount = "42fiascos";
assert_eq!(
FILAmount::from_str(amount).unwrap_err().message(),
"failed to parse fil amount: 42fiascos. Unrecognized suffix."
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to put in the error message the offending suffix as well.

@lemmih lemmih enabled auto-merge (squash) May 2, 2023 15:41
@LeshyBot LeshyBot requested a review from aatifsyed as a code owner May 2, 2023 16:20
@lemmih lemmih merged commit adf4dc3 into main May 2, 2023
@lemmih lemmih deleted the jdjaustin/issue-2668-align-forest-send-with-lotus-send branch May 2, 2023 16:39
@jdjaustin jdjaustin mentioned this pull request May 8, 2023
4 tasks
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.

6 participants