mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjusts compilation tests to read-only array length.
This commit is contained in:
parent
ecaed1030f
commit
5020e186da
@ -143,7 +143,7 @@ contract MultiSigWallet {
|
|||||||
owners[i] = owners[owners.length - 1];
|
owners[i] = owners[owners.length - 1];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
owners.length -= 1;
|
owners.pop();
|
||||||
if (required > owners.length)
|
if (required > owners.length)
|
||||||
changeRequirement(owners.length);
|
changeRequirement(owners.length);
|
||||||
emit OwnerRemoval(owner);
|
emit OwnerRemoval(owner);
|
||||||
|
@ -77,7 +77,7 @@ contract moduleHandler is multiOwner, announcementTypes {
|
|||||||
require( success );
|
require( success );
|
||||||
if ( ! found ) {
|
if ( ! found ) {
|
||||||
id = modules.length;
|
id = modules.length;
|
||||||
modules.length++;
|
modules.push();
|
||||||
}
|
}
|
||||||
modules[id] = input;
|
modules[id] = input;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,8 @@ contract schellingDB is safeMath, schellingVars {
|
|||||||
Constructor
|
Constructor
|
||||||
*/
|
*/
|
||||||
constructor() public {
|
constructor() public {
|
||||||
rounds.length = 2;
|
rounds.push();
|
||||||
|
rounds.push();
|
||||||
rounds[0].blockHeight = block.number;
|
rounds[0].blockHeight = block.number;
|
||||||
currentSchellingRound = 1;
|
currentSchellingRound = 1;
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ contract MilestoneTracker {
|
|||||||
|
|
||||||
RLP.RLPItem memory itmProposal = itrProposals.next();
|
RLP.RLPItem memory itmProposal = itrProposals.next();
|
||||||
|
|
||||||
Milestone storage milestone = milestones[milestones.length ++];
|
Milestone storage milestone = milestones.push();
|
||||||
|
|
||||||
if (!itmProposal.isList()) revert();
|
if (!itmProposal.isList()) revert();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user