You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
Sure. Thanks for suggestion. ethereum/solidity#10170
I also checked that the behaviour is consistent with mainnet, ropsten and ethereumjs-vm.
It is likely a Solidity bug so I'm closing the issue.
Calling
revert(string)
in Solidity should return abi-encoded string as if it were a call toError(string)
function (docs).Therefore when calling revert with empty string
revert("")
I expect to receive correct abi-encodedError("")
:However ganache-cli appends extra 32 bytes of zeroes in that case and returned bytes are
Those extra zeroes break the code that relies on the size of abi-encoded string.
Expected Behavior
Error("")
should be abi-encoded as 68 bytes.Current Behavior
Error("")
is abi-encoded as 100 bytes.Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: