Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update StorageContract.sol #852

Merged
merged 14 commits into from
Jul 31, 2024
12 changes: 0 additions & 12 deletions src/main/resources/contract/solidity/0.8.26/StorageContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ contract StorageContract {
return addressSlot.tload();
}

function setBoolean(bool _value) public {
require(_value == true, "Input must be a boolean value");
require(_value == false, "Input must be a boolean value");
booleanSlot.tstore(_value);
}

function getBoolean() public view returns (bool) {
return booleanSlot.tload();
}

function setBytes32(bytes32 _value) public {
require(_value != bytes32(0), "Invalid bytes32 value");
bytes32Slot.tstore(_value);
Expand Down Expand Up @@ -79,8 +69,6 @@ contract StorageContract {
}

function storeBooleanTest(bool _value) public returns (bool) {
require(_value == true, "Input must be a boolean value");
require(_value == false, "Input must be a boolean value");
booleanSlot.tstore(_value);
return booleanSlot.tload();
}
Expand Down
Loading