diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-16 06:39:19 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-09-04 19:31:10 +0800 |
commit | 0011f8aef9ef949fc971fceed2e319adb6a58ec1 (patch) | |
tree | 2f23a3b638973383f10275ddfaca8af52719b13c /test/compilationTests/milestonetracker/MilestoneTracker.sol | |
parent | 82f512a7d40a3bd6a13dd799be66dd164fded077 (diff) | |
download | dexon-solidity-0011f8aef9ef949fc971fceed2e319adb6a58ec1.tar.gz dexon-solidity-0011f8aef9ef949fc971fceed2e319adb6a58ec1.tar.zst dexon-solidity-0011f8aef9ef949fc971fceed2e319adb6a58ec1.zip |
Update compilation tests.
Diffstat (limited to 'test/compilationTests/milestonetracker/MilestoneTracker.sol')
-rw-r--r-- | test/compilationTests/milestonetracker/MilestoneTracker.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compilationTests/milestonetracker/MilestoneTracker.sol b/test/compilationTests/milestonetracker/MilestoneTracker.sol index 856fb1a5..41fa7404 100644 --- a/test/compilationTests/milestonetracker/MilestoneTracker.sol +++ b/test/compilationTests/milestonetracker/MilestoneTracker.sol @@ -360,8 +360,8 @@ contract MilestoneTracker { // Recheck again to not pay twice if (milestone.status == MilestoneStatus.AuthorizedForPayment) revert(); milestone.status = MilestoneStatus.AuthorizedForPayment; - if (!milestone.paymentSource.call.value(0)(milestone.payData)) - revert(); + (bool success,) = milestone.paymentSource.call.value(0)(milestone.payData); + require(success); emit ProposalStatusChanged(_idMilestone, milestone.status); } } |