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

expose silent parameter to transfer #472

Merged
merged 1 commit into from
May 2, 2020

Conversation

matnad
Copy link
Collaborator

@matnad matnad commented May 2, 2020

What I did

Exposed silent bool parameter to Account.transfer() which will pass it on to TransactionReceipt.
Setting silent = True will suppress any console output for the transaction.

Related issue: #467

How I did it

Exposed the parameter and added all the necessary tests and docs.

How to verify it

Run test_silent_mode or in brownie console: a[0].transfer(a[1], "1 ether", silent = True) should produce no console output.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

- Accounts.transfer() now accepts silent: bool as parameter and forwards it to TransactionReceipt.
- Test done to check if console output is printed
- Updated API docs
- Added info and PR to CHANGELOG.md
@matnad matnad mentioned this pull request May 2, 2020
4 tasks
Copy link
Member

@iamdefinitelyahuman iamdefinitelyahuman left a comment

Choose a reason for hiding this comment

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

LGTM.. sir, it is a pleasure to review such a thorough pull request. Thanks for including documentation and changelog updates!

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