From 1a99fe6632644d28d7f073b1943c0f443092d468 Mon Sep 17 00:00:00 2001 From: clesaege Date: Tue, 1 Nov 2016 17:49:22 +0100 Subject: [PATCH] Removed a bug in claim --- sol/etherlife.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sol/etherlife.sol b/sol/etherlife.sol index 297157e..71c5590 100644 --- a/sol/etherlife.sol +++ b/sol/etherlife.sol @@ -89,11 +89,11 @@ contract continuity{ if (!inactive()) // Verify that the owner is inactive throw; if (beneficiaries[msg.sender]==0) // Verify that the claimer is a beneficiary - throw; - if (beneficiaries[msg.sender]>lowestRank) // Someone with a lower rank already made a claim throw; if (lowestRank==0) // We are the first one claiming timeFirstClaim=now; + else if (beneficiaries[msg.sender]>=lowestRank) // Someone with a lower rank already made a claim + throw; lowestRank=beneficiaries[msg.sender]; lowestClaimer=msg.sender; Claim(lowestClaimer,lowestRank); @@ -129,3 +129,4 @@ contract continuity{ function () payable {} // Accept funds transferts } +