@0x/contracts-staking
: Fix event name collision in MixinStakingPoolRewards
unit tests.
This commit is contained in:
parent
15c3c8074c
commit
c15c5e12b0
@ -33,7 +33,7 @@ contract TestMixinStakingPoolRewards is
|
||||
|
||||
event WithdrawAndSyncDelegatorRewards(
|
||||
bytes32 poolId,
|
||||
address member
|
||||
address delegator
|
||||
);
|
||||
|
||||
struct UnfinalizedPoolReward {
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user