Add comment clarifying RelayHub's msg.data

pull/1844/head
Nicolás Venturo 6 years ago committed by Santiago Palladino
parent dc35dfff85
commit e52ec1a9ac
  1. 3
      contracts/drafts/meta-tx/GSNContext.sol

@ -64,6 +64,9 @@ contract GSNContext is Context {
}
function _getRelayedCallData() private pure returns (bytes memory) {
// RelayHub appends the sender address at the end of the calldata, so in order to retrieve the actual msg.data,
// we must strip the last 20 bytes (length of an address type) from it.
uint256 actualDataLength = msg.data.length - 20;
bytes memory actualData = new bytes(actualDataLength);

Loading…
Cancel
Save