Skip to content

Commit 7301486

Browse files
committed
Change license to AGPL-3.0
1 parent 4acb0ac commit 7301486

File tree

30 files changed

+38
-37
lines changed

30 files changed

+38
-37
lines changed

program-analysis/echidna/example/MockERC20Permit.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.8.0;
33

44
import "./ERC20Permit.sol";

program-analysis/echidna/example/TestDepositWithPermit.sol

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.8.0;
33

44
import "./MockERC20Permit.sol";
@@ -23,11 +23,10 @@ contract TestDepositWithPermit {
2323
}
2424

2525
//helper method to get signature, signs with private key 2
26-
function getSignature(
27-
address owner,
28-
address spender,
29-
uint256 assetAmount
30-
) internal returns (uint8 v, bytes32 r, bytes32 s) {
26+
function getSignature(address owner, address spender, uint256 assetAmount)
27+
internal
28+
returns (uint8 v, bytes32 r, bytes32 s)
29+
{
3130
bytes32 digest = keccak256(
3231
abi.encodePacked(
3332
"\x19\x01",
@@ -56,10 +55,12 @@ contract TestDepositWithPermit {
5655

5756
emit LogBalance(previousOwnerBalance, previousCallerBalance);
5857
(uint8 v, bytes32 r, bytes32 s) = getSignature(OWNER, address(this), amount);
59-
try asset.permit(OWNER, address(this), amount, block.timestamp, v, r, s) {} catch {
58+
try asset.permit(OWNER, address(this), amount, block.timestamp, v, r, s) {}
59+
catch {
6060
emit AssertionFailed("signature is invalid");
6161
}
62-
try asset.transferFrom(OWNER, address(this), amount) {} catch {
62+
try asset.transferFrom(OWNER, address(this), amount) {}
63+
catch {
6364
emit AssertionFailed("transferFrom reverted");
6465
}
6566
uint256 currentOwnerBalance = asset.balanceOf(OWNER);

program-analysis/echidna/example/assert.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.5.0;
33

44
contract Incrementor {

program-analysis/echidna/example/gas.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.5.0;
33

44
contract C {

program-analysis/echidna/example/magic.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.5.0;
33

44
contract C {

program-analysis/echidna/example/multi.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.5.0;
33

44
contract C {

program-analysis/echidna/example/multiabi.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.8.0;
33

44
contract Flag {

program-analysis/echidna/example/opt.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.8.0;
33

44
contract TestDutchAuctionOptimization {

program-analysis/echidna/example/pushpop.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.5.0;
33

44
contract C {

program-analysis/echidna/example/testtoken.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-3.0
1+
// SPDX-License-Identifier: AGPL-3.0
22
pragma solidity ^0.5.0;
33

44
import "./token.sol";

0 commit comments

Comments
 (0)