This file contains hidden or 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import {MyContract} from "./MyContract.sol"; | |
library MockMyContract { | |
function mockCall( | |
function(address) external view returns (uint256), | |
uint256 mockReturnValue | |
) internal { | |
// do the thing to return mockReturnValue |
This file contains hidden or 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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.13; | |
import {s} from './Storage.sol'; | |
contract Logic { | |
function setFoo(string memory newFoo) external { | |
s()._setFoo(newFoo); | |
} |