Skip to content

Commit 6c0210c

Browse files
committed
staticaddr: deposit manager and fsm
1 parent 4611204 commit 6c0210c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

staticaddr/deposit/fsm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ func (f *FSM) DepositStatesV0() fsm.States {
190190
OnRecover: Deposited,
191191
OnExpiry: PublishExpiredDeposit,
192192
fsm.OnError: Deposited,
193+
OnExpiry: PublishExpiredDeposit,
194+
OnRecover: Deposited,
193195
},
194196
Action: fsm.NoOpAction,
195197
},

staticaddr/withdraw/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (m *Manager) WithdrawDeposits(ctx context.Context,
139139
}
140140

141141
err := m.cfg.DepositManager.TransitionDeposits(
142-
outpoints, deposit.OnWithdraw, deposit.Withdrawal,
142+
outpoints, deposit.OnWithdraw, deposit.Withdrawing,
143143
)
144144
if err != nil {
145145
return err

0 commit comments

Comments
 (0)