diff --git a/crates/integration/contracts/ERC20.sol b/crates/integration/contracts/ERC20.sol index e1d467b..8998da8 100644 --- a/crates/integration/contracts/ERC20.sol +++ b/crates/integration/contracts/ERC20.sol @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT + pragma solidity ^0.8.20; // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/token/ERC20/IERC20.sol @@ -9,7 +10,10 @@ interface IERC20 { function transfer(address recipient, uint amount) external returns (bool); - function allowance(address owner, address spender) external view returns (uint); + function allowance( + address owner, + address spender + ) external view returns (uint); function approve(address spender, uint amount) external returns (bool); @@ -23,9 +27,6 @@ interface IERC20 { event Approval(address indexed owner, address indexed spender, uint value); } - - - contract ERC20 is IERC20 { uint public totalSupply; mapping(address => uint) public balanceOf; diff --git a/crates/integration/contracts/Fibonacci.sol b/crates/integration/contracts/Fibonacci.sol index 990c68d..719ca8a 100644 --- a/crates/integration/contracts/Fibonacci.sol +++ b/crates/integration/contracts/Fibonacci.sol @@ -1,4 +1,5 @@ -// Source: +// SPDX-License-Identifier: UNLICENSED + // https://medium.com/coinmonks/fibonacci-in-solidity-8477d907e22a contract FibonacciRecursive { diff --git a/crates/integration/contracts/MSize.sol b/crates/integration/contracts/MSize.sol index 3e73695..2fef855 100644 --- a/crates/integration/contracts/MSize.sol +++ b/crates/integration/contracts/MSize.sol @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + contract MSize { uint[] public data; diff --git a/crates/integration/contracts/Value.sol b/crates/integration/contracts/Value.sol index 054671d..0ee97de 100644 --- a/crates/integration/contracts/Value.sol +++ b/crates/integration/contracts/Value.sol @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + contract Value { function value() public payable returns (uint ret) { ret = msg.value; diff --git a/crates/integration/contracts/mStore8.sol b/crates/integration/contracts/mStore8.sol index 27fae51..33c05ae 100644 --- a/crates/integration/contracts/mStore8.sol +++ b/crates/integration/contracts/mStore8.sol @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + contract MStore8 { function mStore8(uint value) public pure returns (uint256 word) { assembly { diff --git a/crates/integration/contracts/sha1.sol b/crates/integration/contracts/sha1.sol index a86d936..db116e5 100644 --- a/crates/integration/contracts/sha1.sol +++ b/crates/integration/contracts/sha1.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: BSD-2-Clause pragma solidity ^0.8.4; contract SHA1 {