mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2026-04-25 20:27:13 +02:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48156eb7ba
|
||
|
|
70663293af
|
||
|
|
8f8d96dfef
|
||
|
|
1ed9da5a42
|
||
|
|
aed92e96d3
|
||
|
|
cda642253b | ||
|
|
d5a48282be
|
||
|
|
90d3088061
|
@@ -1,9 +1,13 @@
|
|||||||
* 0.0.10-pending
|
* 0.3.1
|
||||||
|
- Upgrade chainlib to 0.2.0
|
||||||
|
* 0.1.10
|
||||||
|
- Apply transfer ownership protection in GiftableToken contract
|
||||||
|
* 0.1.9
|
||||||
|
- Add statictoken contract
|
||||||
|
* 0.0.10
|
||||||
- Upgrade chainlib dependency, providing customizable jsonrpc id
|
- Upgrade chainlib dependency, providing customizable jsonrpc id
|
||||||
- Move to chainlib-eth
|
- Move to chainlib-eth
|
||||||
* 0.0.9-unreleased
|
* 0.0.7
|
||||||
* 0.0.8-unreleased
|
|
||||||
* 0.0.7-unreleased
|
|
||||||
- Implement keystore signing.
|
- Implement keystore signing.
|
||||||
- Change makefile to compile contract for Byzantium.
|
- Change makefile to compile contract for Byzantium.
|
||||||
- Change mint method name to mintTo
|
- Change mint method name to mintTo
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ class ERC20(TxFactory):
|
|||||||
l = len(r)
|
l = len(r)
|
||||||
m = v[:l]
|
m = v[:l]
|
||||||
if m != r:
|
if m != r:
|
||||||
logg.error('method mismatch, expected {}, got {}'.format(r, m))
|
|
||||||
raise RequestMismatchException(v)
|
raise RequestMismatchException(v)
|
||||||
cursor += l
|
cursor += l
|
||||||
|
|
||||||
@@ -244,7 +243,6 @@ class ERC20(TxFactory):
|
|||||||
l = len(r)
|
l = len(r)
|
||||||
m = v[:l]
|
m = v[:l]
|
||||||
if m != r:
|
if m != r:
|
||||||
logg.error('method mismatch, expected {}, got {}'.format(r, m))
|
|
||||||
raise RequestMismatchException(v)
|
raise RequestMismatchException(v)
|
||||||
cursor += l
|
cursor += l
|
||||||
|
|
||||||
@@ -273,7 +271,6 @@ class ERC20(TxFactory):
|
|||||||
l = len(r)
|
l = len(r)
|
||||||
m = v[:l]
|
m = v[:l]
|
||||||
if m != r:
|
if m != r:
|
||||||
logg.error('method mismatch, expected {}, got {}'.format(r, m))
|
|
||||||
raise RequestMismatchException(v)
|
raise RequestMismatchException(v)
|
||||||
cursor += l
|
cursor += l
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -94,4 +94,6 @@ class GiftableToken(TxFactory):
|
|||||||
tx = self.template(sender_address, contract_address, use_nonce=True)
|
tx = self.template(sender_address, contract_address, use_nonce=True)
|
||||||
tx = self.set_code(tx, data)
|
tx = self.set_code(tx, data)
|
||||||
tx = self.finalize(tx, tx_format)
|
tx = self.finalize(tx, tx_format)
|
||||||
return tx
|
return tx
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
confini~=0.5.2
|
confini>=0.5.7,<0.7.0
|
||||||
chainlib-eth~=0.0.14
|
chainlib-eth~=0.2.0
|
||||||
potaahto==0.1.0
|
potaahto~=0.1.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = eth-erc20
|
name = eth-erc20
|
||||||
version = 0.1.9
|
version = 0.3.1
|
||||||
description = ERC20 interface and simple contract with deployment script that lets any address mint and gift itself tokens.
|
description = ERC20 interface and simple contract with deployment script that lets any address mint and gift itself tokens.
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -93,6 +93,7 @@ contract GiftableToken {
|
|||||||
|
|
||||||
// Implements EIP173
|
// Implements EIP173
|
||||||
function transferOwnership(address _newOwner) public returns (bool) {
|
function transferOwnership(address _newOwner) public returns (bool) {
|
||||||
|
require(msg.sender == owner);
|
||||||
owner = _newOwner;
|
owner = _newOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user