Skip to content

Commit

Permalink
Update BountyManager.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Peiyuan Liao committed Aug 26, 2021
1 parent 84f0aa9 commit 3f857c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eth/contracts/libraries/BountyManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,9 @@ contract BountyManager is Verifier {
}
}

address refund_account = msg.sender;
address payable refund_account = msg.sender;
refund_account.transfer(toremove);
emit BountyRemoved(toremove);
return toremove;
}

function collectBounty(
Expand All @@ -173,7 +172,7 @@ contract BountyManager is Verifier {
uint[2][2] memory b,
uint[2] memory c,
uint[131] memory input
) public returns (uint256) {
) public {
require(verifyProof(a, b, c, input), "Invalid Proof");

uint index_offset = m * p + n * p * 2 + n * 2;
Expand All @@ -196,7 +195,6 @@ contract BountyManager is Verifier {
}
to.transfer(topay);
emit BountyCollected(topay);
return topay;
}

// Function to receive Ether. msg.data must be empty
Expand Down

0 comments on commit 3f857c4

Please sign in to comment.