You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoking events without "emit" prefix is deprecated.
Registry.sol:186:13: Warning: Invoking events without "emit" prefix is deprecated.
_TouchAndRemoved(_listingHash);
^----------------------------^
Parameterizer.sol:155:5: Warning: Invoking events without "emit" prefix is deprecated.
_ReparameterizationProposal(_name, _value, propID, deposit, proposals[propID].appExpiry, msg.sender);
Easily fixed by adding the emit prefix to all events.
Use of the "var" keyword is deprecated.
Registry.sol:214:29: Warning: Use of the "var" keyword is deprecated.
var (commitEndDate, revealEndDate,) = voting.pollMap(pollID);
Parameterizer.sol:189:25: Warning: Use of the "var" keyword is deprecated.
var (commitEndDate, revealEndDate,) = voting.pollMap(pollID);
Not sure how to go about this one. Trying to store the result to a Poll struct gives a TypeError
Parameterizer.sol:189:5: TypeError: Too many components (5) in value for variable assignment (1 needed).
PLCRVoting.Poll memory poll = voting.pollMap(pollID);
^--------------------------------------------------^
This declaration shadows an existing declaration.
Registry.sol:176:9: Warning: This declaration shadows an existing declaration.
uint deposit = parameterizer.get("minDeposit");
^----------^
Registry.sol:115:5: The shadowed declaration is here:
function deposit(bytes32 _listingHash, uint _amount) external {
^ (Relevant source part starts here and spans across multiple lines).
Can be fixed by changing uint deposit to uint minDeposit (seems more descriptive too)
The text was updated successfully, but these errors were encountered:
Invoking events without "emit" prefix is deprecated.
Easily fixed by adding the
emit
prefix to all events.Use of the "var" keyword is deprecated.
Not sure how to go about this one. Trying to store the result to a
Poll
struct gives aTypeError
This declaration shadows an existing declaration.
Can be fixed by changing
uint deposit
touint minDeposit
(seems more descriptive too)The text was updated successfully, but these errors were encountered: