Fixed bug that added a superfluous empty slot for data when encoding an empty string coming from storage.

Added tests covering empty string, uninitialized string, emptry string literal, byte arrays and explicit call to `abi.encode`.
This commit is contained in:
Matheus Aguiar
2022-05-18 14:50:26 -03:00
committed by matheusaaguiar
parent de7daaa2af
commit 33ea6a679d
10 changed files with 110 additions and 9 deletions
@@ -17,7 +17,7 @@ contract C {
// compileViaYul: also
// ----
// constructor() ->
// gas irOptimized: 192317
// gas irOptimized: 193397
// gas legacy: 240889
// gas legacyOptimized: 155314
// initCode() -> 0x20, 0