mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11052 from blishko/issue-10986
[SMTChecker] Correct handling of FixedBytes constants initialized with string literal
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract MockContract {
|
||||
bytes4 public constant SENTINEL_ANY_MOCKS = hex"01";
|
||||
mapping(bytes4 => bytes4) methodIdMocks;
|
||||
|
||||
constructor() {
|
||||
methodIdMocks[SENTINEL_ANY_MOCKS] = 0;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract MockContract {
|
||||
bytes4 public constant SENTINEL_ANY_MOCKS = hex"01";
|
||||
|
||||
constructor() {
|
||||
assert(SENTINEL_ANY_MOCKS >= 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user