Merge pull request #10421 from ssi91/fix-getters-test

pass a literal with correct length
This commit is contained in:
Kamil Śliwak 2020-11-26 23:33:24 +01:00 committed by GitHub
commit 46f638e54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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