mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
committed by
matheusaaguiar
parent
de7daaa2af
commit
33ea6a679d
@@ -17,7 +17,7 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// constructor() ->
|
||||
// gas irOptimized: 192317
|
||||
// gas irOptimized: 193397
|
||||
// gas legacy: 240889
|
||||
// gas legacyOptimized: 155314
|
||||
// initCode() -> 0x20, 0
|
||||
|
||||
Reference in New Issue
Block a user