From c15c5e12b08d86d6416c9ba240b31750acf6e4cf Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Mon, 4 Nov 2019 11:09:21 -0500 Subject: [PATCH] `@0x/contracts-staking`: Fix event name collision in `MixinStakingPoolRewards` unit tests. --- .../staking/contracts/test/TestMixinStakingPoolRewards.sol | 2 +- contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/staking/contracts/test/TestMixinStakingPoolRewards.sol b/contracts/staking/contracts/test/TestMixinStakingPoolRewards.sol index 14400d95af..3bda161aac 100644 --- a/contracts/staking/contracts/test/TestMixinStakingPoolRewards.sol +++ b/contracts/staking/contracts/test/TestMixinStakingPoolRewards.sol @@ -33,7 +33,7 @@ contract TestMixinStakingPoolRewards is event WithdrawAndSyncDelegatorRewards( bytes32 poolId, - address member + address delegator ); struct UnfinalizedPoolReward { diff --git a/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts b/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts index 782936d13a..ab6f332488 100644 --- a/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts +++ b/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts @@ -119,7 +119,7 @@ blockchainTests.resets('MixinStakingPoolRewards unit tests', env => { describe('withdrawDelegatorRewards()', () => { it('calls `_withdrawAndSyncDelegatorRewards()` with the sender as the member', async () => { const { logs } = await testContract.withdrawDelegatorRewards.awaitTransactionSuccessAsync(POOL_ID); - verifyEventsFromLogs(logs, [{ poolId: POOL_ID, member: caller }], Events.WithdrawAndSyncDelegatorRewards); + verifyEventsFromLogs(logs, [{ poolId: POOL_ID, delegator: caller }], Events.WithdrawAndSyncDelegatorRewards); }); });