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

feat: adding a fee output type #282

Merged
merged 2 commits into from
Jul 3, 2023
Merged

Conversation

bochaco
Copy link
Member

@bochaco bochaco commented Jun 29, 2023

No description provided.

@bochaco bochaco force-pushed the feat-fee-output branch 4 times, most recently from 9885b56 to 925d0d5 Compare July 3, 2023 12:53
@bochaco bochaco marked this pull request as ready for review July 3, 2023 12:54
@bochaco bochaco requested a review from a team as a code owner July 3, 2023 12:54
- Adding a Token::is_zero API.
- Re-adding workflow file for automatic releases.
Comment on lines +123 to +128
let amount = self
.outputs
.iter()
.map(|o| o.token.as_nano())
.chain(std::iter::once(self.fee.token.as_nano()))
.sum();
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should have a checked_add here to error out on an overflow? Maybe I can work on it.

@bochaco bochaco merged commit 0461e33 into maidsafe:master Jul 3, 2023
9 checks passed
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.

None yet

2 participants