Skip to content

Commit

Permalink
fix incorrect secret mapping updation
Browse files Browse the repository at this point in the history
  • Loading branch information
yash1io committed Mar 27, 2024
1 parent f14db70 commit fab9879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/fee/GardenFEEAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ contract GardenFEEAccount is EIP712Upgradeable {
if (secretsClaimed[secrets[htlcs[i].secretHash]] > 0) {
if (secretsClaimed[secrets[htlcs[i].secretHash]] != nonce_) {
secretsProcessed = true;
secretsClaimed[secrets_[i]] = nonce_;
secretsClaimed[secrets[htlcs[i].secretHash]] = nonce_;
amount_ += htlcs[i].sendAmount;
amount_ -= htlcs[i].recieveAmount;
}
Expand Down

0 comments on commit fab9879

Please sign in to comment.