File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4949 ContractReceiveNewPaymentNetwork ,
5050 ContractReceiveNewTokenNetwork ,
5151 ContractReceiveRouteNew ,
52+ ContractReceiveRouteClosed ,
5253 ContractReceiveSecretReveal ,
5354 ContractReceiveUpdateTransfer ,
5455 ReceiveDelivered ,
@@ -788,6 +789,11 @@ def handle_state_change(chain_state: ChainState, state_change: StateChange) -> T
788789 chain_state ,
789790 state_change ,
790791 )
792+ elif type (state_change ) == ContractReceiveRouteClosed :
793+ iteration = handle_token_network_action (
794+ chain_state ,
795+ state_change ,
796+ )
791797 elif type (state_change ) == ContractReceiveSecretReveal :
792798 iteration = handle_secret_reveal (
793799 chain_state ,
@@ -838,6 +844,8 @@ def handle_state_change(chain_state: ChainState, state_change: StateChange) -> T
838844 chain_state ,
839845 state_change ,
840846 )
847+ else :
848+ raise ValueError (f'Unknown state change: { state_change !r} ' )
841849
842850 return iteration
843851
You can’t perform that action at this time.
0 commit comments