Add transfer ownership protection

This commit is contained in:
lash 2022-03-11 05:55:16 +00:00
parent 988858e3ae
commit 90d3088061
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
7 changed files with 12 additions and 9 deletions

View File

@ -1,9 +1,11 @@
* 0.0.10-pending
* 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
- Move to chainlib-eth
* 0.0.9-unreleased
* 0.0.8-unreleased
* 0.0.7-unreleased
* 0.0.7
- Implement keystore signing.
- Change makefile to compile contract for Byzantium.
- Change mint method name to mintTo

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
[metadata]
name = eth-erc20
version = 0.1.9
version = 0.1.10
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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -93,6 +93,7 @@ contract GiftableToken {
// Implements EIP173
function transferOwnership(address _newOwner) public returns (bool) {
require(msg.sender == owner);
owner = _newOwner;
}

File diff suppressed because one or more lines are too long