mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
test: _toBoolArray added for one and two elements on test helpers
This commit is contained in:
@@ -358,6 +358,19 @@ contract BaseTest is TestSetup {
|
||||
return ret;
|
||||
}
|
||||
|
||||
function _toBoolArray(bool b) internal pure returns (bool[] memory) {
|
||||
bool[] memory ret = new bool[](1);
|
||||
ret[0] = b;
|
||||
return ret;
|
||||
}
|
||||
|
||||
function _toBoolArray(bool b0, bool b1) internal pure returns (bool[] memory) {
|
||||
bool[] memory ret = new bool[](2);
|
||||
ret[0] = b0;
|
||||
ret[1] = b1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Private functions
|
||||
function _buildSetDelegatedExecutorApprovalWithSigData(
|
||||
address onBehalfOf,
|
||||
|
||||
Reference in New Issue
Block a user