From fe066d2a89995c524627f86d3f8681eb108e492b Mon Sep 17 00:00:00 2001 From: vbasiuk Date: Wed, 23 Oct 2024 16:23:25 +0300 Subject: [PATCH] remove variable --- contracts/payment/MCPayment.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/payment/MCPayment.sol b/contracts/payment/MCPayment.sol index c42437c7..82104dc5 100644 --- a/contracts/payment/MCPayment.sol +++ b/contracts/payment/MCPayment.sol @@ -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,