-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing silent errors since v0.8.0 * missing snapshot
- Loading branch information
Showing
4 changed files
with
102 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
pragma solidity 0.5.8; | ||
|
||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.3; | ||
|
||
contract VariableTypesMixed { | ||
uint256 public a; | ||
int256 public b; | ||
bytes1 public c; | ||
uint public e; | ||
int public f; | ||
byte public g; | ||
|
||
struct S { | ||
uint a; | ||
int b; | ||
byte c; | ||
uint256 e; | ||
int256 f; | ||
bytes1 g; | ||
} | ||
|
||
event Event(uint _a, int256 _b, bytes1 _c, uint256 _e, int _f, byte _g); | ||
event Event(uint _a, int256 _b, uint256 _e, int _f); | ||
|
||
function func(uint256 _a, int256 _b, byte _c, uint _e, int _f, bytes1 _g) | ||
function func( | ||
uint256 _a, | ||
int256 _b, | ||
uint _e, | ||
int _f | ||
) | ||
public | ||
returns (uint, int256, byte, uint256, int, bytes1) | ||
returns ( | ||
uint, | ||
int256, | ||
uint256, | ||
int | ||
) | ||
{ | ||
emit Event(_a, _b, _c, _e, _f, _g); | ||
return (_a, _b, _c, _e, _f, _g); | ||
emit Event(_a, _b, _e, _f); | ||
return (_a, _b, _e, _f); | ||
} | ||
} |
Oops, something went wrong.