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 Solidity Version and Refactor Contracts to Remove SafeMath Redundancy #763

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update contracts/src/levels/Fallout.sol: updated pragma, removed Safe…
…Math
jtranquilli committed Dec 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 90c6ae7298aaf7a23c100fcf891db4950eab4685
5 changes: 2 additions & 3 deletions contracts/src/levels/Fallout.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma solidity ^0.8.0;

import "openzeppelin-contracts-06/math/SafeMath.sol";

contract Fallout {
using SafeMath for uint256;
@@ -21,7 +20,7 @@ contract Fallout {
}

function allocate() public payable {
allocations[msg.sender] = allocations[msg.sender].add(msg.value);
allocations[msg.sender] = allocations[msg.sender] + (msg.value);
}

function sendAllocation(address payable allocator) public {