Make Context._msgData return "bytes calldata" (#2492)
This commit is contained in:
@ -17,7 +17,7 @@ abstract contract Context {
|
||||
return msg.sender;
|
||||
}
|
||||
|
||||
function _msgData() internal view virtual returns (bytes memory) {
|
||||
function _msgData() internal view virtual returns (bytes calldata) {
|
||||
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
|
||||
return msg.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user