@@ -103,7 +103,7 @@ func NewFSM(ctx context.Context, deposit *Deposit, cfg *ManagerConfig,
103103
104104 if recoverStateMachine {
105105 depoFsm .StateMachine = fsm .NewStateMachineWithState (
106- depositStates , deposit .getState (),
106+ depositStates , deposit .GetState (),
107107 DefaultObserverSize ,
108108 )
109109 } else {
@@ -146,8 +146,8 @@ func (f *FSM) handleBlockNotification(currentHeight uint32) error {
146146
147147 // If the deposit is expired but not yet sufficiently confirmed, we
148148 // republish the expiry sweep transaction.
149- if f .deposit .isExpired (currentHeight , params .Expiry ) {
150- if f .deposit .isInState (WaitForExpirySweep ) {
149+ if f .deposit .IsExpired (currentHeight , params .Expiry ) {
150+ if f .deposit .IsInState (WaitForExpirySweep ) {
151151 f .PublishDepositExpirySweepAction (nil )
152152 } else {
153153 go func () {
@@ -231,13 +231,13 @@ func (f *FSM) updateDeposit(notification fsm.Notification) {
231231 notification .Event ,
232232 )
233233
234- f .deposit .setState (notification .NextState )
234+ f .deposit .SetState (notification .NextState )
235235
236236 // Don't update the deposit if we are in an initial state or if we
237237 // are transitioning from an initial state to a failed state.
238238 d := f .deposit
239- if d .isInState (fsm .EmptyState ) || d .isInState (Deposited ) ||
240- (notification .PreviousState == Deposited && d .isInState (
239+ if d .IsInState (fsm .EmptyState ) || d .IsInState (Deposited ) ||
240+ (notification .PreviousState == Deposited && d .IsInState (
241241 Failed ,
242242 )) {
243243
0 commit comments