Silence false-positive compiler warning

pull/1844/head
Nicolás Venturo 6 years ago committed by Santiago Palladino
parent dc8adcd0ea
commit 82ca6ab62f
  1. 2
      contracts/drafts/meta-tx/Context.sol

@ -18,8 +18,8 @@ contract Context {
return msg.sender; return msg.sender;
} }
// This can be pure, but overrides will need to read msg.sender, which is view
function _msgData() internal view returns (bytes memory) { function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data; return msg.data;
} }
} }

Loading…
Cancel
Save