Skip to main content

Questions tagged [warnings]

Questions are related to the warnings appearing in the code.

2 votes
2 answers
1k views

I have a contract that all of the functions either change the state or return data from storage. I have tried the techniques to reduce the size and it helped a bit. However, I need to add a couple ...
Bengican Altunsu's user avatar
0 votes
1 answer
163 views

I have the following code sample pragma solidity ^0.8.13; error MyError(); abstract contract A { function f1() public pure virtual returns(bool); function f2() public pure virtual returns(...
tazous's user avatar
  • 1
0 votes
1 answer
200 views

Can you please help me out with this code, where I get the six warnings shown bellow? As a result, the withdrawal doesn't go through with the specified amount. But I don't know how to get around it. ...
f22daniel's user avatar
  • 383
0 votes
0 answers
111 views

Here's the contract code to the token "alex". Below are the warnings from remix. Thanks for any assistance // SPDX-License-Identifier: MIT pragma solidity 0.8.4; contract alex { ...
tay's user avatar
  • 1
3 votes
3 answers
5k views

I have been getting a compiler warning in the online remix IDE that is not quite clear to me (the contract compiles and deploys without any errors): compilerMetadata is modifying/artifacts/...
Niccola_Tartaglia's user avatar
0 votes
1 answer
467 views

I have two contracts. Contract A is given by: //A.sol pragma solidity ^0.5.8; contract A { address owner; constructor() public{ owner = msg.sender; } function transferTo(address to,...
zak100's user avatar
  • 1,426
4 votes
1 answer
864 views

I keep getting this error/warning on my vscode when I emit events and build constructors. or After a bit of googling I understand it is something about my compiler, since solc <0.4.18 does not ...
João Quintanilha's user avatar
0 votes
3 answers
3k views

Which is the best, view or pure instead of constant? library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == ...
upracha's user avatar
  • 59

15 30 50 per page