Skip to content

Commit

Permalink
Merge pull request #18 from iamdefinitelyahuman/v0.3.2
Browse files Browse the repository at this point in the history
V0.3.2
  • Loading branch information
iamdefinitelyahuman authored Jul 6, 2021
2 parents c3de4a0 + c2d7d11 commit 3dd45e1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/iamdefinitelyahuman/brownie-token-tester)

## [0.3.2](https://github.com/iamdefinitelyahuman/brownie-token-tester/tree/v0.3.2) - 2021-07-06
### Fixed
- pull EURS minter via `eth_getStorageAt`
- allow mixing returns `None` with revert

## [0.3.1](https://github.com/iamdefinitelyahuman/brownie-token-tester/tree/v0.3.1) - 2021-06-23
### Fixed
- `skip_holders` bug (removing non-existing address from a list)
Expand Down
4 changes: 2 additions & 2 deletions brownie_tokens/forked.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import requests
import sys
from brownie import Contract, Wei
from brownie import Contract, Wei, web3
from brownie.convert import to_address
from typing import Dict, List, Optional

Expand Down Expand Up @@ -139,7 +139,7 @@ def mint_0xdB25f211AB05b1c97D595516F45794528a807ad8(
token: MintableForkToken, target: str, amount: int
) -> None:
# EURS
owner = "0x2EbBbc541E8f8F24386FA319c79CedA0579f1Efb"
owner = web3.eth.getStorageAt(token.address, 2)[-20:].hex()
token.createTokens(amount, {"from": owner})
token.transfer(target, amount, {"from": owner})

Expand Down
2 changes: 1 addition & 1 deletion brownie_tokens/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def ERC20(
if fail not in FAIL_STATEMENT:
valid_keys = [str(i) for i in FAIL_STATEMENT.keys()]
raise ValueError(f"Invalid value for `fail`, valid options are: {', '.join(valid_keys)}")
if None in (fail, success) and fail is not success:
if None in (fail, success) and fail is not success and fail != "revert":
raise ValueError("Cannot use `None` for only one of `success` and `fail`.")

source = TEMPLATE.format(
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.1
current_version = 0.3.2

[bumpversion:file:setup.py]

Expand Down Expand Up @@ -28,4 +28,3 @@ addopts =
--cov brownie_tokens/
--cov-report term
--cov-report xml

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name="brownie-token-tester",
packages=find_packages(exclude=["tests", "tests.*"]),
py_modules=["brownie_tokens"],
version="0.3.1", # don't change this manually, use bumpversion instead
version="0.3.2", # don't change this manually, use bumpversion instead
license="MIT",
description="Helper objects for generating ERC20s while testing a Brownie project.",
long_description=long_description,
Expand Down

0 comments on commit 3dd45e1

Please sign in to comment.