Skip to content

Commit b31a87c

Browse files
fix: update isActive check in addFunds function
Co-Authored-By: Tejas Badadare <[email protected]>
1 parent 422dca8 commit b31a87c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

target_chains/ethereum/contracts/contracts/pulse/Scheduler.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,10 @@ abstract contract Scheduler is IScheduler, SchedulerState {
531531
subscriptionId
532532
];
533533

534-
if (!status.isActive) {
534+
if (!params.isActive) {
535535
revert InactiveSubscription();
536536
}
537537

538-
539538
// Check deposit limit for permanent subscriptions
540539
if (params.isPermanent && msg.value > MAX_DEPOSIT_LIMIT) {
541540
revert MaxDepositLimitExceeded();

0 commit comments

Comments
 (0)