Skip to content

Commit 55109ad

Browse files
authored
feat: paymentservice add lock on receive (#859)
1 parent afc61b7 commit 55109ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/src/core/BatcherPaymentService.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ contract BatcherPaymentService is
100100
// PAYABLE FUNCTIONS
101101
receive() external payable {
102102
userData[msg.sender].balance += msg.value;
103+
userData[msg.sender].unlockBlock = 0;
103104
emit PaymentReceived(msg.sender, msg.value);
104105
}
105106

0 commit comments

Comments
 (0)