Open
Description
Abstract
Currently abi.decode()
works with memory
argument and not with calldata
, if calldata
is provided it is being copied to memory and then decoded. Let's make abi.decode()
to support both arguments and returns as calldata
.
Motivation
Calldata
abstraction is cool, slicing is cool. We need abi.decode()
to fully support decoding from calldata
to calldata
!
Specification
function f(bytes calldata data) external {
(
address[] calldata targets,
bytes[] calldata calldatas
) = abi.decode(data[1:], (address[], bytes[]));
// ...
}
Backwards Compatibility
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
ICE-Box