Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Aug 2, 2024
1 parent 450cfbc commit 9aaf6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnt2-contracts/src/contracts/LockPayment/LockPayment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ contract LockPayment is ILockPayment {
if (deposit.feeAmount > 0) {
emit DepositFeeTransfer(id, deposit.spender, deposit.feeAmount);
require(GLM.transfer(deposit.spender, deposit.feeAmount), "fee transfer failed");
deposits[id].feeAmount = 0;
}
deposits[id].feeAmount = 0;
deposits[id].amount = 0;
//leave this in deposit to prevent recreating deposit with the same id
deposits[id].spender = 0x0000000000000000000000000000000000000Bad;
Expand Down

0 comments on commit 9aaf6b5

Please sign in to comment.