Skip to content

Commit 9103391

Browse files
committed
improvements
1 parent 9023d70 commit 9103391

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

not-so-smart-contracts/cairo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Each _Not So Smart Contract_ consists of a standard set of information:
3030

3131
These examples are developed and maintained by [Trail of Bits](https://www.trailofbits.com/).
3232

33-
If you have any questions, issues, or wish to learn more, join the #ethereum channel on the [Empire Hacking Slack](https://empireslacking.herokuapp.com/) or [contact us](https://www.trailofbits.com/contact/) directly.
33+
If you have any questions, issues, or wish to learn more, join the #ethereum channel on the [Empire Hacking Slack](https://slack.empirehacking.nyc/) or [contact us](https://www.trailofbits.com/contact/) directly.

program-analysis/echidna/example/assert.sol

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

44
contract Incrementor {
55
uint256 private counter = 2 ** 200;

program-analysis/echidna/example/gas.sol

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

44
contract C {
55
uint256 state;

program-analysis/echidna/example/multi.sol

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

44
contract C {
55
bool state1 = false;

program-analysis/echidna/example/pushpop.sol

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

44
contract C {
55
address[] addrs;

program-analysis/echidna/example/testtoken.sol

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

44
import "./token.sol";
55

program-analysis/echidna/example/token.sol

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

44
contract Token {
55
mapping(address => uint256) public balances;

program-analysis/echidna/exercises/exercise1/token.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ contract Token is Ownable, Pausable {
3636

3737
function transfer(address to, uint256 value) public whenNotPaused {
3838
// unchecked to save gas
39-
unchecked{
39+
unchecked {
4040
balances[msg.sender] -= value;
4141
balances[to] += value;
4242
}

program-analysis/echidna/exercises/exercise4/solution.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "./token.sol";
99
/// echidna program-analysis/echidna/exercises/exercise4/solution.sol --contract TestToken --test-mode assertion
1010
/// ```
1111
contract TestToken is Token {
12-
function transfer(address to, uint256 value) public {
12+
function transfer(address to, uint256 value) override public {
1313
uint256 oldBalanceFrom = balances[msg.sender];
1414
uint256 oldBalanceTo = balances[to];
1515

program-analysis/echidna/exercises/exercise4/token.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ contract Pausable is Ownable {
3838
contract Token is Ownable, Pausable {
3939
mapping(address => uint256) public balances;
4040

41-
function transfer(address to, uint256 value) public whenNotPaused {
41+
function transfer(address to, uint256 value) public virtual whenNotPaused {
4242
// unchecked to save gas
43-
unchecked{
43+
unchecked {
4444
balances[msg.sender] -= value;
4545
balances[to] += value;
4646
}

0 commit comments

Comments
 (0)