Add missing unittest module to erc20 package

This commit is contained in:
lash 2023-05-30 17:38:56 +01:00
parent 4f2d47778c
commit d1e5b84cfb
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
7 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1 @@
from .base import *

View File

@ -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

View File

@ -1,6 +1,7 @@
#!/bin/bash
export PYTHONPATH=${PYTHONPATH}:.
>&2 echo "using pythonpath $PYTHONPATH"
set -e
set -x

View File

@ -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]

View File

@ -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);