Skip to content

add MAX_MONEY public constant to Amount#742

Merged
RCasatta merged 1 commit intorust-bitcoin:masterfrom
6293:max-money-amount
Dec 16, 2021
Merged

add MAX_MONEY public constant to Amount#742
RCasatta merged 1 commit intorust-bitcoin:masterfrom
6293:max-money-amount

Conversation

@6293
Copy link
Copy Markdown
Contributor

@6293 6293 commented Dec 14, 2021

Closes #740

Copy link
Copy Markdown
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

Could you add the same constant for unsigned Amount too, please?

Note for other reviewers: Mul::mul is not const so 21_000_000 * Self::ONE_BTC wouldn't work.

@Kixunil Kixunil added trivial Obvious, easy and quick to review (few lines or doc-only...) waiting for author This can only progress if the author responds to a request. labels Dec 14, 2021
@6293
Copy link
Copy Markdown
Contributor Author

6293 commented Dec 15, 2021

@Kixunil thanks, updated.

@6293 6293 requested a review from Kixunil December 15, 2021 03:22
@sanket1729
Copy link
Copy Markdown
Member

We should address why @dpc reacted with thumbs down before we proceed on this.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like you forgot to remove Signed :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🙏

@Kixunil
Copy link
Copy Markdown
Collaborator

Kixunil commented Dec 15, 2021

@sanket1729 I think he thought it is an implementation of #620 but it isn't. @dpc could you clarify?

@6293 6293 requested a review from Kixunil December 15, 2021 10:02
@Kixunil Kixunil removed the waiting for author This can only progress if the author responds to a request. label Dec 15, 2021
@dpc
Copy link
Copy Markdown
Contributor

dpc commented Dec 15, 2021

Correct. Please don't mind me.

Copy link
Copy Markdown
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK ab12410

@Kixunil Kixunil added the one ack PRs that have one ACK, so one more can progress them label Dec 15, 2021
Copy link
Copy Markdown
Collaborator

@RCasatta RCasatta left a comment

Choose a reason for hiding this comment

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

ACK ab12410

@RCasatta RCasatta merged commit e5c6d65 into rust-bitcoin:master Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

one ack PRs that have one ACK, so one more can progress them trivial Obvious, easy and quick to review (few lines or doc-only...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MAX_MONEY public constant to Amount

5 participants