Skip to content
This repository was archived by the owner on Jun 14, 2018. It is now read-only.

Commit 3e7a280

Browse files
authored
Merge pull request #131 from trufflesuite/assert.sol-warnings
Fix Assert.sol warnings for solc v0.4.22
2 parents e1b2a50 + 2957609 commit 3e7a280

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/testing/Assert.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,9 +1344,9 @@ library Assert {
13441344
*/
13451345
function _report(bool result, string message) internal {
13461346
if(result)
1347-
TestEvent(true, "");
1347+
emit TestEvent(true, "");
13481348
else
1349-
TestEvent(false, message);
1349+
emit TestEvent(false, message);
13501350
}
13511351

13521352
/*
@@ -1560,7 +1560,7 @@ library Assert {
15601560
result (string) - "tag: _itoa(value)"
15611561
*/
15621562
function _tag(int value, string tag) internal pure returns (string) {
1563-
var nstr = _itoa(value, 10);
1563+
string memory nstr = _itoa(value, 10);
15641564
return _tag(nstr, tag);
15651565
}
15661566

@@ -1577,7 +1577,7 @@ library Assert {
15771577
result (string) - "tag: _utoa(value)"
15781578
*/
15791579
function _tag(uint value, string tag) internal pure returns (string) {
1580-
var nstr = _utoa(value, 10);
1580+
string memory nstr = _utoa(value, 10);
15811581
return _tag(nstr, tag);
15821582
}
15831583

@@ -1594,7 +1594,7 @@ library Assert {
15941594
result (string) - "tag: _ltoa(value)"
15951595
*/
15961596
function _tag(bool value, string tag) internal pure returns (string) {
1597-
var nstr = _ltoa(value);
1597+
string memory nstr = _ltoa(value);
15981598
return _tag(nstr, tag);
15991599
}
16001600

0 commit comments

Comments
 (0)