Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Aug 5, 2024
1 parent 0d68e95 commit b5a4d7e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env.unsafe.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
SEPOLIA_PKEY=xxx
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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!

Expand All @@ -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`
Expand All @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -110,4 +110,4 @@ pytest tests/integration/ -x

# Thank you!

Thank you for wanting to participate in titanoboa!
Thank you for wanting to participate in titanoboa!
4 changes: 3 additions & 1 deletion boa/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ def _send_txn(self, from_, to=None, gas=None, value=None, data=None):

if gas is None:
try:
tx_data["gas"] = self._rpc.fetch("eth_estimateGas", [tx_data, "pending"])
tx_data["gas"] = self._rpc.fetch(
"eth_estimateGas", [tx_data, "pending"]
)
except RPCError as e:
if e.code == 3:
# execution failed at estimateGas, probably the txn reverted
Expand Down
2 changes: 1 addition & 1 deletion tests/unitary/contracts/abi/test_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -255,4 +256,3 @@ def __init__(x: uint256):

assert wrapper.foo() == 5
assert wrapper2.foo() == 6

6 changes: 5 additions & 1 deletion tests/unitary/test_modules.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import pytest
from pathlib import Path

import pytest

import boa

FIXTURES = Path(__file__).parent / "fixtures"


@pytest.fixture
def module_contract():
return boa.load(FIXTURES / "module_contract.vy")


def test_user_raise(module_contract):
with boa.reverts("Error with message"):
module_contract.fail()


def test_dev_reason(module_contract):
with boa.reverts("some dev reason"):
module_contract.fail_dev_reason()

0 comments on commit b5a4d7e

Please sign in to comment.