Add more tests for state access (block, msg, tx, etc.)

Move some of them out of SolidityEndToEndTests. Additionally this ensures the deterministic values of the testing infrastructure.
This commit is contained in:
Alex Beregszaszi
2020-12-09 20:46:01 +00:00
parent 9e07981920
commit f9d6abf69b
17 changed files with 199 additions and 76 deletions
@@ -0,0 +1,13 @@
contract C {
function f() public returns (bytes calldata) {
return msg.data;
}
function g(uint,bool) public returns (bytes calldata) {
return msg.data;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 0x20, 4, 17219911917854084299749778639755835327755045716242581057573779540915269926912
// g(uint256,bool): 1234, true -> 0x20, 0x44, 35691323728519381642872894128098848782337736632589179916067422734266033766400, 33268574187263889506619096617382224251268236217415066441681855047532544, 26959946667150639794667015087019630673637144422540572481103610249216