From f2648dfb68c82891e541704c4bae27d0d7e5edd5 Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 26 Mar 2023 07:34:27 +0100 Subject: [PATCH] Update Expire ERC165 signature --- python/CHANGELOG | 6 ++++++ python/setup.cfg | 2 +- solidity/DemurrageTokenSingleNocap.sol | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python/CHANGELOG b/python/CHANGELOG index dc54dbc..c34cd39 100644 --- a/python/CHANGELOG +++ b/python/CHANGELOG @@ -1,3 +1,9 @@ +- 0.5.2 + * Update ERC165 interface response for Expire +- 0.5.1 + * Update ERC165 interface responses +- 0.5.0 + * Change license - 0.4.2 * Correct burn interface implementation - 0.4.1 diff --git a/python/setup.cfg b/python/setup.cfg index ed23c79..5ebf562 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = erc20-demurrage-token -version = 0.5.1 +version = 0.5.2 description = ERC20 token with redistributed continual demurrage author = Louis Holbrook author_email = dev@holbrook.no diff --git a/solidity/DemurrageTokenSingleNocap.sol b/solidity/DemurrageTokenSingleNocap.sol index 7fc8695..29514dd 100644 --- a/solidity/DemurrageTokenSingleNocap.sol +++ b/solidity/DemurrageTokenSingleNocap.sol @@ -209,6 +209,7 @@ contract DemurrageTokenSingleNocap { // Expire the contract if expire is set and we have gone over the threshold. // Finalizes demurrage up to the timestamp of the expiry. // The first approve, transfer or transferFrom call that hits the ex == 2 will get the tx mined. but without the actual effect. Otherwise we would have to wait until an external egent called applyExpiry to get the correct final balance. + // Implements Expire function applyExpiry() public returns(uint8) { if (expired) { return 1; @@ -751,7 +752,7 @@ contract DemurrageTokenSingleNocap { if (_sum == 0xabe1f1f5) { // Writer return true; } - if (_sum == 0xcb52c823) { // Expire + if (_sum == 0x841a0e94) { // Expire return true; } if (_sum == 0x01ffc9a7) { // ERC165