diff --git a/python/CHANGELOG b/python/CHANGELOG index 3a5a329..57db605 100644 --- a/python/CHANGELOG +++ b/python/CHANGELOG @@ -1,3 +1,7 @@ +* 0.7.4 + - Add missing unittest module to python package +* 0.7.3 + - Add ERC5679Ext20 fills * 0.7.2 - Update python classifiers - Upgrade to beta diff --git a/python/eth_erc20/unittest/__init__.py b/python/eth_erc20/unittest/__init__.py new file mode 100644 index 0000000..9b5ed21 --- /dev/null +++ b/python/eth_erc20/unittest/__init__.py @@ -0,0 +1 @@ +from .base import * diff --git a/python/giftable_erc20_token/data/.chainlib b/python/giftable_erc20_token/data/.chainlib new file mode 100644 index 0000000..e69de29 diff --git a/python/giftable_erc20_token/factory.py b/python/giftable_erc20_token/factory.py index 8f1014d..8bb9174 100644 --- a/python/giftable_erc20_token/factory.py +++ b/python/giftable_erc20_token/factory.py @@ -45,7 +45,9 @@ class GiftableToken(ERC20): enc.string(symbol) enc.uint256(decimals) enc.uint256(expire) - code += enc.get() + args = enc.get() + code += args + logg.debug('constructor code: ' + args) return code diff --git a/python/run_tests.sh b/python/run_tests.sh index b3151b7..926a9eb 100755 --- a/python/run_tests.sh +++ b/python/run_tests.sh @@ -1,6 +1,7 @@ #!/bin/bash export PYTHONPATH=${PYTHONPATH}:. +>&2 echo "using pythonpath $PYTHONPATH" set -e set -x diff --git a/python/setup.cfg b/python/setup.cfg index 6a7a716..7cb7df3 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-erc20 -version = 0.7.3 +version = 0.7.4 description = ERC20 interface and simple contract with deployment script that lets any address mint and gift itself tokens. author = Louis Holbrook author_email = dev@holbrook.no @@ -36,6 +36,7 @@ packages = eth_erc20 eth_erc20.data eth_erc20.runnable + eth_erc20.unittest static_token.data [options.package_data] diff --git a/solidity/GiftableToken.sol b/solidity/GiftableToken.sol index bee4844..fb81557 100644 --- a/solidity/GiftableToken.sol +++ b/solidity/GiftableToken.sol @@ -65,8 +65,9 @@ contract GiftableToken { return totalMinted - totalBurned; } - // Implements Minter mapping(address => bool) writers; + + // Implements Minter function mintTo(address _to, uint256 _value) public returns (bool) { require(writers[msg.sender] || msg.sender == owner);