From 6ef66d56eb6b74d14ca494e2580e4cb1e31574c7 Mon Sep 17 00:00:00 2001 From: sophiacodes Date: Tue, 1 Jun 2021 16:47:43 +0100 Subject: [PATCH 1/2] Adding an event to redeemCoupon function --- contracts/adapters/CouponOnboarding.sol | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contracts/adapters/CouponOnboarding.sol b/contracts/adapters/CouponOnboarding.sol index bd21b6e34..f8a6ca130 100644 --- a/contracts/adapters/CouponOnboarding.sol +++ b/contracts/adapters/CouponOnboarding.sol @@ -52,6 +52,13 @@ contract CouponOnboardingContract is DaoConstants, AdapterGuard, Signatures { uint256 chainId; mapping(address => mapping(uint256 => uint256)) flags; + event CouponRedeemed( + address daoAddress, + uint256 nonce, + address memberAddress, + uint256 amount + ); + constructor(uint256 _chainId) { chainId = _chainId; } @@ -126,5 +133,7 @@ contract CouponOnboardingContract is DaoConstants, AdapterGuard, Signatures { } catch { // do nothing } + + emit CouponRedeemed(address(dao), nonce, authorizedMember, amount); } } From 2267c9bfb3bf07f36db2dc938bf32e549524c0bd Mon Sep 17 00:00:00 2001 From: sophiacodes Date: Tue, 1 Jun 2021 16:49:27 +0100 Subject: [PATCH 2/2] renamed prop --- contracts/adapters/CouponOnboarding.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/adapters/CouponOnboarding.sol b/contracts/adapters/CouponOnboarding.sol index f8a6ca130..f27ae6f4a 100644 --- a/contracts/adapters/CouponOnboarding.sol +++ b/contracts/adapters/CouponOnboarding.sol @@ -55,7 +55,7 @@ contract CouponOnboardingContract is DaoConstants, AdapterGuard, Signatures { event CouponRedeemed( address daoAddress, uint256 nonce, - address memberAddress, + address authorizedMember, uint256 amount );