From b2af2a326f74f8b7f751deafc716c97500b07d70 Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Wed, 4 Sep 2024 21:16:40 +0200 Subject: [PATCH 1/2] Update etherscan message --- boa/explorer.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boa/explorer.py b/boa/explorer.py index 2b8b9fab..cd8dd642 100644 --- a/boa/explorer.py +++ b/boa/explorer.py @@ -28,7 +28,7 @@ def _fetch_etherscan( res = SESSION.get(uri, params=params) res.raise_for_status() data = res.json() - if data.get("result") != "Max rate limit reached": + if "rate limit" not in data.get("result", "") or data.get("status") != "0": break sleep(backoff_ms / 1000) diff --git a/pyproject.toml b/pyproject.toml index 9a7e5494..999265e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "curve-boa" -version = "0.1.10.0" +version = "0.1.10.1" description = "A Vyper interpreter" #authors = [] license = { file = "LICENSE" } From 6eed8ca58cfbd1fbb10c3b12b49bd49c46b8449e Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Wed, 4 Sep 2024 21:20:12 +0200 Subject: [PATCH 2/2] Lint --- .env.unsafe.example | 2 +- CONTRIBUTING.md | 12 ++++++------ tests/unitary/contracts/abi/test_abi.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.env.unsafe.example b/.env.unsafe.example index 1d302dd6..6a6cc081 100644 --- a/.env.unsafe.example +++ b/.env.unsafe.example @@ -2,4 +2,4 @@ # Meaning, you should never store private keys associated with real funds in here! MAINNET_ENDPOINT=xxx SEPOLIA_ENDPOINT=xxx -SEPOLIA_PKEY=xxx \ No newline at end of file +SEPOLIA_PKEY=xxx diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 388001c2..f590c49b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing -Thank you for wanting to contribute! This project reviews PRs that have an associated issue with -them. If you have not make an issue for your PR, please make one first. +Thank you for wanting to contribute! This project reviews PRs that have an associated issue with +them. If you have not make an issue for your PR, please make one first. Issues, feedback, and sharing that you're using Titanoboa and Vyper on social media is always welcome! @@ -21,7 +21,7 @@ Issues, feedback, and sharing that you're using Titanoboa and Vyper on social me ## Requirements -You must have the following installed to proceed with contributing to this project. +You must have the following installed to proceed with contributing to this project. - [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - You'll know you did it right if you can run `git --version` and you see a response like `git version x.x.x` @@ -32,7 +32,7 @@ You must have the following installed to proceed with contributing to this proje - Linux and/or MacOS - This project is not tested on Windows, so it is recommended to use a Linux or MacOS machine, or use a tool like [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) for windows users. -## Installing for local development +## Installing for local development Follow the steps to clone the repo for you to make changes to this project. @@ -85,7 +85,7 @@ This will skip the integration tests, which need extra "stuff". ### Integration tests -Once you have setup your virtual environment, to run integration tests, you'll need to add environment variables. +Once you have setup your virtual environment, to run integration tests, you'll need to add environment variables. You can see the `.env.unsafe.example` for environment variables you'll want to use. @@ -110,4 +110,4 @@ pytest tests/integration/ -x # Thank you! -Thank you for wanting to participate in titanoboa! \ No newline at end of file +Thank you for wanting to participate in titanoboa! diff --git a/tests/unitary/contracts/abi/test_abi.py b/tests/unitary/contracts/abi/test_abi.py index 724fe7dc..3ed2e7f3 100644 --- a/tests/unitary/contracts/abi/test_abi.py +++ b/tests/unitary/contracts/abi/test_abi.py @@ -238,6 +238,7 @@ def test_abi_invalid_components(): assert "Components found in non-tuple type uint256" == str(exc_info.value) + def test_abi_factory_multi_deploy(): code = """ foo: public(uint256) @@ -255,4 +256,3 @@ def __init__(x: uint256): assert wrapper.foo() == 5 assert wrapper2.foo() == 6 -