ApeWorX / ape-hardhat

Hardhat network provider for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
17 stars 15 forks source link

test: ensure can use impersonated account [APE-845] #139

Closed antazoey closed 1 year ago

antazoey commented 1 year ago

What I did

I am debugging something in ape-foundry but needed to compare with ape-hardhat but struggling to find a good test. This PR makes a good test template that I can use both.

How I did it

How to verify it

tests all pass will suffice. no need prod code changes.

Checklist

linear[bot] commented 1 year ago
APE-845 "test: ensure can use impersonated account" (ApeWorX/ape-hardhat #139)

### What I did I am debugging something in `ape-foundry` but needed to compare with `ape-hardhat` but struggling to find a good test. This PR makes a good test template that I can use both. ### How I did it * move contract_a to conftest * use impersonated account in test to ensure can call method from that contract ### How to verify it tests all pass will suffice. no need prod code changes. ### Checklist * [ ] Passes all linting checks (pre-commit and CI jobs) * [ ] New test cases have been added and are passing * [ ] Documentation has been updated * [ ] PR title follows [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/) standard (will be automatically included in the changelog) --- [ApeWorX/ape-hardhat #139](https://github.com/ApeWorX/ape-hardhat/pull/139) by [antazoey](https://github.com/antazoey) on GitHub *via LinearSync*