mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Updates solc-js test to 0.6.0.
This commit is contained in:
parent
8adde5abbe
commit
e4f0414391
@ -295,7 +295,7 @@ contract DAOInterface {
|
|||||||
/// @notice Send `_amount` tokens to `_to` from `msg.sender`. Prior to this
|
/// @notice Send `_amount` tokens to `_to` from `msg.sender`. Prior to this
|
||||||
/// getMyReward() is called.
|
/// getMyReward() is called.
|
||||||
/// @param _to The address of the recipient
|
/// @param _to The address of the recipient
|
||||||
/// @param _amount The amount of tokens to be transfered
|
/// @param _amount The amount of tokens to be transferred
|
||||||
/// @return Whether the transfer was successful or not
|
/// @return Whether the transfer was successful or not
|
||||||
function transferWithoutReward(address _to, uint256 _amount) public returns (bool success);
|
function transferWithoutReward(address _to, uint256 _amount) public returns (bool success);
|
||||||
|
|
||||||
@ -303,7 +303,7 @@ contract DAOInterface {
|
|||||||
/// is approved by `_from`. Prior to this getMyReward() is called.
|
/// is approved by `_from`. Prior to this getMyReward() is called.
|
||||||
/// @param _from The address of the sender
|
/// @param _from The address of the sender
|
||||||
/// @param _to The address of the recipient
|
/// @param _to The address of the recipient
|
||||||
/// @param _amount The amount of tokens to be transfered
|
/// @param _amount The amount of tokens to be transferred
|
||||||
/// @return Whether the transfer was successful or not
|
/// @return Whether the transfer was successful or not
|
||||||
function transferFromWithoutReward(
|
function transferFromWithoutReward(
|
||||||
address payable _from,
|
address payable _from,
|
||||||
@ -383,7 +383,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
|
|||||||
revert();
|
revert();
|
||||||
lastTimeMinQuorumMet = now;
|
lastTimeMinQuorumMet = now;
|
||||||
minQuorumDivisor = 5; // sets the minimal quorum to 20%
|
minQuorumDivisor = 5; // sets the minimal quorum to 20%
|
||||||
proposals.length = 1; // avoids a proposal with ID 0 because it is used
|
proposals.push(); // avoids a proposal with ID 0 because it is used
|
||||||
|
|
||||||
allowedRecipients[address(this)] = true;
|
allowedRecipients[address(this)] = true;
|
||||||
allowedRecipients[curator] = true;
|
allowedRecipients[curator] = true;
|
||||||
@ -447,8 +447,8 @@ contract DAO is DAOInterface, Token, TokenCreation {
|
|||||||
if (proposals.length == 1) // initial length is 1 (see constructor)
|
if (proposals.length == 1) // initial length is 1 (see constructor)
|
||||||
lastTimeMinQuorumMet = now;
|
lastTimeMinQuorumMet = now;
|
||||||
|
|
||||||
_proposalID = proposals.length++;
|
Proposal storage p = proposals.push();
|
||||||
Proposal storage p = proposals[_proposalID];
|
_proposalID = proposals.length - 1;
|
||||||
p.recipient = _recipient;
|
p.recipient = _recipient;
|
||||||
p.amount = _amount;
|
p.amount = _amount;
|
||||||
p.description = _description;
|
p.description = _description;
|
||||||
@ -458,7 +458,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
|
|||||||
//p.proposalPassed = False; // that's default
|
//p.proposalPassed = False; // that's default
|
||||||
p.newCurator = _newCurator;
|
p.newCurator = _newCurator;
|
||||||
if (_newCurator)
|
if (_newCurator)
|
||||||
p.splitData.length++;
|
p.splitData.push();
|
||||||
p.creator = msg.sender;
|
p.creator = msg.sender;
|
||||||
p.proposalDeposit = msg.value;
|
p.proposalDeposit = msg.value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user