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];
|
||||
break;
|
||||
}
|
||||
owners.length -= 1;
|
||||
owners.pop();
|
||||
if (required > owners.length)
|
||||
changeRequirement(owners.length);
|
||||
emit OwnerRemoval(owner);
|
||||
|
@ -77,7 +77,7 @@ contract moduleHandler is multiOwner, announcementTypes {
|
||||
require( success );
|
||||
if ( ! found ) {
|
||||
id = modules.length;
|
||||
modules.length++;
|
||||
modules.push();
|
||||
}
|
||||
modules[id] = input;
|
||||
}
|
||||
|
@ -46,7 +46,8 @@ contract schellingDB is safeMath, schellingVars {
|
||||
Constructor
|
||||
*/
|
||||
constructor() public {
|
||||
rounds.length = 2;
|
||||
rounds.push();
|
||||
rounds.push();
|
||||
rounds[0].blockHeight = block.number;
|
||||
currentSchellingRound = 1;
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ contract MilestoneTracker {
|
||||
|
||||
RLP.RLPItem memory itmProposal = itrProposals.next();
|
||||
|
||||
Milestone storage milestone = milestones[milestones.length ++];
|
||||
Milestone storage milestone = milestones.push();
|
||||
|
||||
if (!itmProposal.isList()) revert();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user