Skip to content

Commit

Permalink
remove deprecated var
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbreak committed Feb 21, 2018
1 parent 8053e25 commit 67b13dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ contract DSTest {
}

modifier logs_gas() {
var startGas = msg.gas;
uint startGas = msg.gas;
_;
var endGas = msg.gas;

This comment has been minimized.

Copy link
@klantch

klantch Feb 15, 2022

get

uint endGas = msg.gas;
log_named_uint("gas", startGas - endGas);

This comment has been minimized.

Copy link
@klantch

klantch Feb 15, 2022

#22

This comment has been minimized.

Copy link
@klantch

klantch Feb 15, 2022

#22

}

Expand Down Expand Up @@ -117,7 +117,7 @@ contract DSTest {
}

function assertEq0(bytes a, bytes b) internal {
var ok = true;
bool ok = true;

if (a.length == b.length) {
for (uint i = 0; i < a.length; i++) {
Expand Down

0 comments on commit 67b13dd

Please sign in to comment.