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

docs: update some doctest examples #2339

Merged
merged 1 commit into from
Apr 10, 2023
Merged

Conversation

DaniPopes
Copy link
Collaborator

Motivation

Cleaned up doctests with tokio::main and no_run, and etherscan tests which all had redundant client initializations which are not the focus of the example

I don't believe running async tests in doctests is a great practice

Breaking change in etherscan::Client::get_ether_balance_multi because slice of references is not good

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@prestwich prestwich merged commit 7b89b7c into gakonst:master Apr 10, 2023
11 of 15 checks passed
@prestwich
Copy link
Collaborator

prestwich commented Apr 10, 2023

Merging as CI failures are unrelated and we have another small breaking change in ethers-etherscan already from #2327

@DaniPopes DaniPopes deleted the docs/examples branch April 12, 2023 21:36
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