Skip to content

Commit e600923

Browse files
fix: replace expiracy mentions in addArbitraryExpirationSubscriptions method
1 parent 454f144 commit e600923

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

aggregation_mode/batcher/abi/AggregationModePaymentService.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AggregationModePaymentService.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,16 @@ contract AggregationModePaymentService is Initializable, OwnableUpgradeable, UUP
159159
/**
160160
* @notice Adds an array of addresses to the payment map and emits the Payment event.
161161
* @param addressesToAdd the addresses to be subscribed
162-
* @param expiracy the expiracy date for that subscriptions
162+
* @param expirationTimestamp the expiration timestamp (UTC seconds) for that subscriptions
163163
*/
164-
function addArbitraryExpirationSubscriptions(address[] memory addressesToAdd, uint256 expiracy) public onlyOwner() {
164+
function addArbitraryExpirationSubscriptions(address[] memory addressesToAdd, uint256 expirationTimestamp) public onlyOwner() {
165165
for (uint256 i=0; i < addressesToAdd.length; ++i) {
166166
address addressToAdd = addressesToAdd[i];
167167

168-
subscribedAddresses[addressToAdd] = expiracy;
168+
subscribedAddresses[addressToAdd] = expirationTimestamp;
169169

170170
// TODO: Analyze if we should emit N events or just one
171-
emit UserPayment(msg.sender, amountToPayInWei, block.timestamp, expiracy);
171+
emit UserPayment(msg.sender, amountToPayInWei, block.timestamp, expirationTimestamp);
172172
}
173173
}
174174

0 commit comments

Comments
 (0)