Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarti committed Oct 17, 2024
1 parent c270aeb commit 11300ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions contracts/src/interfaces/IIPTokenStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ interface IIPTokenStaking {
/// @notice Emitted when the validator commission is updated
/// @param validatorUncmpPubkey 65 bytes uncompressed secp256k1 public key.
/// @param commissionRate The new commission rate of the validator.
event UpdateValidatorCommssion(
bytes validatorUncmpPubkey,
uint32 commissionRate
);
event UpdateValidatorCommssion(bytes validatorUncmpPubkey, uint32 commissionRate);

/// @notice Emitted when a user deposits token into the contract.
/// @param delegatorUncmpPubkey Delegator's 65 bytes uncompressed secp256k1 public key.
Expand Down
8 changes: 6 additions & 2 deletions contracts/test/stake/IPTokenStaking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ contract IPTokenStakingTest is Test {
bytes memory validatorPubkey = delegatorUncmpPubkey;
uint256 stakeAmount = 1024 ether;
uint256 predeployInitialBalance = 1; // 1 wei, needed to have predeploy at genesis

vm.deal(delegatorAddr, stakeAmount);
vm.prank(delegatorAddr);
ipTokenStaking.stake{ value: stakeAmount }(
Expand All @@ -324,7 +324,11 @@ contract IPTokenStakingTest is Test {
IIPTokenStaking.StakingPeriod.FLEXIBLE,
""
);
assertEq(address(ipTokenStaking).balance, predeployInitialBalance, "IPTokenStaking: Stake amount should be burned");
assertEq(
address(ipTokenStaking).balance,
predeployInitialBalance,
"IPTokenStaking: Stake amount should be burned"
);
assertEq(address(delegatorAddr).balance, 0, "Delegator: No remainder should be sent back");

// Remainder if the stake amount has values under STAKE_ROUNDING
Expand Down

0 comments on commit 11300ff

Please sign in to comment.