Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarti committed Nov 27, 2024
1 parent 184b7d5 commit 90d31b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion contracts/src/libraries/Predeploys.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pragma solidity ^0.8.23;
* @notice Predeploy addresses (match story/genutil/evm/predeploys.go)
*/
library Predeploys {

/// @notice Predeploys
/// @dev Address reserved for ERC20 wrapper for Story's native token, address starts with
/// Story mainnet chain ID
Expand Down
18 changes: 14 additions & 4 deletions contracts/test/ubipool/UBIPool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ contract UBIPoolTest is Test, ValidatorData {
bytes[] memory validatorUncmpPubKeys = new bytes[](2);
validatorUncmpPubKeys[0] = validators[0].uncompressedHex;
validatorUncmpPubKeys[1] = validators[1].uncompressedHex;

vm.deal(address(ubiPool), totalAmount);
performTimelocked(
address(ubiPool),
Expand All @@ -186,7 +186,12 @@ contract UBIPoolTest is Test, ValidatorData {

expectRevertTimelocked(
address(ubiPool),
abi.encodeWithSelector(IUBIPool.setUBIDistribution.selector, newTotalAmount, newValidatorUncmpPubKeys, newAmounts),
abi.encodeWithSelector(
IUBIPool.setUBIDistribution.selector,
newTotalAmount,
newValidatorUncmpPubKeys,
newAmounts
),
"UBIPool: not enough balance"
);
}
Expand All @@ -200,7 +205,7 @@ contract UBIPoolTest is Test, ValidatorData {
bytes[] memory validatorUncmpPubKeys = new bytes[](2);
validatorUncmpPubKeys[0] = validators[0].uncompressedHex;
validatorUncmpPubKeys[1] = validators[1].uncompressedHex;

vm.deal(address(ubiPool), totalAmount + 10 ether); // Extra balance for next distribution
performTimelocked(
address(ubiPool),
Expand All @@ -222,7 +227,12 @@ contract UBIPoolTest is Test, ValidatorData {

performTimelocked(
address(ubiPool),
abi.encodeWithSelector(IUBIPool.setUBIDistribution.selector, newTotalAmount, newValidatorUncmpPubKeys, newAmounts),
abi.encodeWithSelector(
IUBIPool.setUBIDistribution.selector,
newTotalAmount,
newValidatorUncmpPubKeys,
newAmounts
),
bytes32(keccak256("setUBIDistribution"))
);
}
Expand Down

0 comments on commit 90d31b1

Please sign in to comment.