Skip to content

Commit

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

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

## [0.0.3](https://github.com/iamdefinitelyahuman/brownie-token-tester/tree/v0.0.3) - 2021-01-13
### Fixed
- `ERC20.transfer` bug

## [0.0.2](https://github.com/iamdefinitelyahuman/brownie-token-tester/tree/v0.0.2) - 2021-01-12
### Fixed
- Improved handling of string types for `success` and `revert` kwargs in `ERC20` init
Expand Down
2 changes: 1 addition & 1 deletion brownie_tokens/token-template.vy
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(_name: String[64], _symbol: String[32], _decimals: uint256):

@external
def transfer(_to : address, _value : uint256){return_type}:
if self.balanceOf[_to] < _value:
if self.balanceOf[msg.sender] < _value:
{fail_statement}
self.balanceOf[msg.sender] -= _value
self.balanceOf[_to] += _value
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.0.2
current_version = 0.0.3

[bumpversion:file:setup.py]

Expand Down
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.0.2", # don't change this manually, use bumpversion instead
version="0.0.3", # 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 4b37e3c

Please sign in to comment.