mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2024-11-23 10:16:47 +01:00
Add missing unittest module to erc20 package
This commit is contained in:
parent
4f2d47778c
commit
d1e5b84cfb
@ -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
|
||||
|
1
python/eth_erc20/unittest/__init__.py
Normal file
1
python/eth_erc20/unittest/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .base import *
|
0
python/giftable_erc20_token/data/.chainlib
Normal file
0
python/giftable_erc20_token/data/.chainlib
Normal 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
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
export PYTHONPATH=${PYTHONPATH}:.
|
||||
>&2 echo "using pythonpath $PYTHONPATH"
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
@ -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]
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user