-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix random method visibility in BaseFeeManager (#246)
* Reduce random visibility * Add FeeManagerMock to test random method * Fix lint:sol:prettier:fix npm script
- Loading branch information
Showing
4 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pragma solidity 0.4.24; | ||
|
||
import "../upgradeable_contracts/BaseFeeManager.sol"; | ||
|
||
contract FeeManagerMock is BaseFeeManager { | ||
function distributeFeeFromAffirmation(uint256 _fee) external { | ||
// solhint-disable-previous-line no-empty-blocks | ||
} | ||
|
||
function distributeFeeFromSignatures(uint256 _fee) external { | ||
// solhint-disable-previous-line no-empty-blocks | ||
} | ||
|
||
function getFeeManagerMode() external pure returns (bytes4) { | ||
return bytes4(keccak256(abi.encodePacked("manages-one-direction"))); | ||
} | ||
|
||
function randomTest(uint256 _count) external view returns (uint256) { | ||
return super.random(_count); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters