Skip to content

Commit

Permalink
remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Oct 23, 2024
1 parent dd164b7 commit fe066d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/payment/MCPayment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ contract MCPayment is Ownable2StepUpgradeable, EIP712Upgradeable {
uint256 issuerPart = paymentData.amount - ownerPart;
token.transfer(paymentData.recipient, issuerPart);
emit Payment(paymentData.recipient, paymentData.nonce);
bytes32 paymentId = keccak256(abi.encode(paymentData.recipient, paymentData.nonce));
$.isPaid[paymentId] = true;
$.isPaid[keccak256(abi.encode(paymentData.recipient, paymentData.nonce))] = true;
} else {
revert ERC20PaymentFailed(
paymentData.recipient,
Expand Down

0 comments on commit fe066d2

Please sign in to comment.