c9639c3860
* tests: add solidity test suite * tests: remove require strings * Update tests-solidity/init-test-node.sh * Update tests-solidity/init-test-node.sh Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
20 lines
563 B
Solidity
20 lines
563 B
Solidity
pragma solidity 0.4.24;
|
|
|
|
import "./UnstructuredStorage.sol";
|
|
|
|
|
|
contract DepositableStorage {
|
|
using UnstructuredStorage for bytes32;
|
|
|
|
// keccak256("aragonOS.depositableStorage.depositable")
|
|
bytes32 internal constant DEPOSITABLE_POSITION = 0x665fd576fbbe6f247aff98f5c94a561e3f71ec2d3c988d56f12d342396c50cea;
|
|
|
|
function isDepositable() public view returns (bool) {
|
|
return DEPOSITABLE_POSITION.getStorageBool();
|
|
}
|
|
|
|
function setDepositable(bool _depositable) internal {
|
|
DEPOSITABLE_POSITION.setStorageBool(_depositable);
|
|
}
|
|
}
|