@@ -86,7 +86,7 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
8686 // check that the voucher is signed by the payer (or proxy)
8787 _requireAuthorizedRCASigner (signedRCA);
8888
89- AgreementData storage agreement = _getForUpdateAgreement (signedRCA.rca.agreementId);
89+ AgreementData storage agreement = _getAgreementStorage (signedRCA.rca.agreementId);
9090 // check that the agreement is not already accepted
9191 require (
9292 agreement.state == AgreementState.NotAccepted,
@@ -126,7 +126,7 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
126126 * @dev Caller must be the data service for the agreement.
127127 */
128128 function cancel (bytes16 agreementId , CancelAgreementBy by ) external {
129- AgreementData storage agreement = _getForUpdateAgreement (agreementId);
129+ AgreementData storage agreement = _getAgreementStorage (agreementId);
130130 require (
131131 agreement.state == AgreementState.Accepted,
132132 RecurringCollectorAgreementIncorrectState (agreementId, agreement.state)
@@ -161,7 +161,7 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
161161 RecurringCollectorAgreementDeadlineElapsed (signedRCAU.rcau.deadline)
162162 );
163163
164- AgreementData storage agreement = _getForUpdateAgreement (signedRCAU.rcau.agreementId);
164+ AgreementData storage agreement = _getAgreementStorage (signedRCAU.rcau.agreementId);
165165 require (
166166 agreement.state == AgreementState.Accepted,
167167 RecurringCollectorAgreementIncorrectState (signedRCAU.rcau.agreementId, agreement.state)
@@ -248,7 +248,7 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
248248 * @return The amount of tokens collected
249249 */
250250 function _collect (CollectParams memory _params ) private returns (uint256 ) {
251- AgreementData storage agreement = _getForUpdateAgreement (_params.agreementId);
251+ AgreementData storage agreement = _getAgreementStorage (_params.agreementId);
252252 require (
253253 agreement.state == AgreementState.Accepted || agreement.state == AgreementState.CanceledByPayer,
254254 RecurringCollectorAgreementIncorrectState (_params.agreementId, agreement.state)
@@ -456,7 +456,7 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
456456 /**
457457 * @notice Gets an agreement to be updated.
458458 */
459- function _getForUpdateAgreement (bytes16 _agreementId ) private view returns (AgreementData storage ) {
459+ function _getAgreementStorage (bytes16 _agreementId ) private view returns (AgreementData storage ) {
460460 return agreements[_agreementId];
461461 }
462462
0 commit comments