Merge pull request #7 from Giveth/GriffGreen-patch-4

Added comments and other small changes
This commit is contained in:
Jordi Baylina 2017-10-03 11:33:51 +02:00 committed by GitHub
commit 4a76d51f82
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ contract Vault is Owned {
/// funds transparently by its connection to other `Payment` structs
struct Payment {
PaymentState state; //
bytes32 ref; // a hash that references details from other contracts
bytes32 ref; // an input that references details from other contracts
address dest; // recipient of the ETH
uint amount; // amount of ETH (in wei) to be sent
}
@ -58,6 +58,7 @@ contract Vault is Owned {
}
function setLiquidPledging(address _newLiquidPledging) onlyOwner {
require(address(liquidPledging) == 0x0);
liquidPledging = LiquidPledging(_newLiquidPledging);
}
@ -134,5 +135,4 @@ contract Vault is Owned {
event ConfirmPayment(uint indexed idPayment);
event CancelPayment(uint indexed idPayment);
event AuthorizePayment(uint indexed idPayment, bytes32 indexed ref, address indexed dest, uint amount);
}