Skip to content

Commit

Permalink
Contracts upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
flopez7 committed Oct 24, 2024
1 parent ca173a1 commit 1273036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion packages/core/contracts/Staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,12 @@ contract Staking is

_safeTransfer(token, _slashRequester, tokensToSlash);

emit StakeSlashed(_staker, _tokens, _escrowAddress, _slashRequester);
emit StakeSlashed(
_staker,
tokensToSlash,
_escrowAddress,
_slashRequester
);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/core/test/Staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ describe('Staking', function () {
ethers.ZeroAddress,
slashedTokens
)
).to.be.revertedWith('Must be a valid address');
).to.be.revertedWith('Must be a valid escrow address');
});

it('Should revert if slash amount exceeds staking', async function () {
Expand All @@ -486,7 +486,7 @@ describe('Staking', function () {
escrowAddress,
stakedTokens
)
).to.be.revertedWith('Slash tokens exceed staked ones');
).to.be.revertedWith('Slash amount exceeds staked amount');
});

it('Should revert if slash amount is 0', async function () {
Expand Down

0 comments on commit 1273036

Please sign in to comment.