mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #10421 from ssi91/fix-getters-test
pass a literal with correct length
This commit is contained in:
		
						commit
						46f638e54e
					
				| @ -13,6 +13,8 @@ contract D { | |||||||
|         return (new C{value: 11}()).x(); |         return (new C{value: 11}()).x(); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | // ==== | ||||||
|  | // compileViaYul: also | ||||||
| // ---- | // ---- | ||||||
| // f() -> FAILURE, hex"4e487b71", 0x11 | // f() -> FAILURE, hex"4e487b71", 0x11 | ||||||
| // g(), 100 wei -> 1 | // g(), 100 wei -> 1 | ||||||
|  | |||||||
| @ -14,7 +14,7 @@ contract C { | |||||||
|         c = 5; |         c = 5; | ||||||
|         d = 6; |         d = 6; | ||||||
|         e = bytes1(uint8(0x7f)); |         e = bytes1(uint8(0x7f)); | ||||||
|         f = bytes20(uint160(0x64656164626565663135646561640000000000000010)); |         f = bytes20(uint160(0x6465616462656566313564656164000000000010)); | ||||||
|         g = bytes32(uint256(0x6465616462656566313564656164000000000000000000000000000000000010)); |         g = bytes32(uint256(0x6465616462656566313564656164000000000000000000000000000000000010)); | ||||||
|         h = true; |         h = true; | ||||||
|         i = address(type(uint160).max / 3); |         i = address(type(uint160).max / 3); | ||||||
| @ -29,7 +29,7 @@ contract C { | |||||||
| // c() -> 5 | // c() -> 5 | ||||||
| // d() -> 6 | // d() -> 6 | ||||||
| // e() -> 0x7f00000000000000000000000000000000000000000000000000000000000000 | // e() -> 0x7f00000000000000000000000000000000000000000000000000000000000000 | ||||||
| // f() -> 0x6164626565663135646561640000000000000010000000000000000000000000 | // f() -> 0x6465616462656566313564656164000000000010000000000000000000000000 | ||||||
| // g() -> 0x6465616462656566313564656164000000000000000000000000000000000010 | // g() -> 0x6465616462656566313564656164000000000000000000000000000000000010 | ||||||
| // h() -> true | // h() -> true | ||||||
| // i() -> 0x5555555555555555555555555555555555555555 | // i() -> 0x5555555555555555555555555555555555555555 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user