Skip to content

Instantly share code, notes, and snippets.

@cleanunicorn
Created March 31, 2021 14:07
Show Gist options
  • Select an option

  • Save cleanunicorn/2106c4503702f396bce04709dfcd2ef7 to your computer and use it in GitHub Desktop.

Select an option

Save cleanunicorn/2106c4503702f396bce04709dfcd2ef7 to your computer and use it in GitHub Desktop.
One can change the calldata arguments using other calldata arguments.
contract C {
function getCalldata(
bytes calldata _a,
bytes calldata _b
) public pure returns (bytes calldata, bytes calldata) {
_a = _b;
return (_a, _b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment