pass a literal with correct length

mark a test as Yul-based
This commit is contained in:
ssi91 2020-11-27 02:46:52 +07:00
parent 18de8a56c9
commit e7165f3a9c
2 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,8 @@ contract D {
return (new C{value: 11}()).x();
}
}
// ====
// compileViaYul: also
// ----
// f() -> FAILURE, hex"4e487b71", 0x11
// g(), 100 wei -> 1

View File

@ -14,7 +14,7 @@ contract C {
c = 5;
d = 6;
e = bytes1(uint8(0x7f));
f = bytes20(uint160(0x64656164626565663135646561640000000000000010));
f = bytes20(uint160(0x6465616462656566313564656164000000000010));
g = bytes32(uint256(0x6465616462656566313564656164000000000000000000000000000000000010));
h = true;
i = address(type(uint160).max / 3);
@ -29,7 +29,7 @@ contract C {
// c() -> 5
// d() -> 6
// e() -> 0x7f00000000000000000000000000000000000000000000000000000000000000
// f() -> 0x6164626565663135646561640000000000000010000000000000000000000000
// f() -> 0x6465616462656566313564656164000000000010000000000000000000000000
// g() -> 0x6465616462656566313564656164000000000000000000000000000000000010
// h() -> true
// i() -> 0x5555555555555555555555555555555555555555