Skip to content

Commit

Permalink
update contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Lihua committed Oct 26, 2020
1 parent 452de30 commit 753106b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/storemanGroupAdmin/StoremanLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ library StoremanLib {
StoremanType.Candidate storage sk = data.candidates[0][wkAddr];
require(sk.wkAddr == wkAddr, "Candidate doesn't exist");
require(checkCanStakeOut(data, wkAddr),"selecting");
require(dk.quited == false,"quited");

StoremanType.Delegator storage dk = sk.delegators[msg.sender];
require(dk.quited == false,"quited");
require(dk.deposit.getLastValue() != 0, "no deposit");
dk.quited = true;
uint amount = dk.deposit.getLastValue();
Expand Down

0 comments on commit 753106b

Please sign in to comment.