Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A compiler is a computer program that translates a higher-level programming language into a lower-level language. For example: Solidity is compiled into EVM opcodes.
2
votes
Function overriding versus Solidity Compiler Warning: Function state mutability can be restr...
I found that OpenZeppelin seems to silence such compiler warnings about state mutability in this way:
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability …
2
votes
2
answers
1k
views
Function overriding versus Solidity Compiler Warning: Function state mutability can be restr...
bytes memory payload)
public
view
returns(bool)
{
// do some non-pure stuff
// return true OR false
}
}
My question regarding how to silence this compiler … If overriding a function with a dissimilar state mutability does not
work, how can I silence the aforementioned compiler warning?
Thanks for your help! …