@@ -24,10 +24,6 @@ module ntt::ntt {
2424 const EWrongDestinationChain : vector <u8 >
2525 = b"Wrong destination chain ";
2626
27- #[error]
28- const EPaused : vector <u8 >
29- = b"Contract is paused ";
30-
3127 #[allow(lint(coin_field))]
3228 public struct TransferTicket <phantom CoinType > {
3329 coins: Coin <CoinType >,
@@ -130,7 +126,7 @@ module ntt::ntt {
130126 ): OutboxKey {
131127 version_gated.check_version (state);
132128
133- assert ! (! state.is_paused (), EPaused );
129+ state.assert_not_paused ( );
134130
135131 let TransferTicket {
136132 coins,
@@ -198,7 +194,7 @@ module ntt::ntt {
198194 ) {
199195 version_gated.check_version (state);
200196
201- assert ! (! state.is_paused (), EPaused );
197+ state.assert_not_paused ( );
202198
203199 let (chain_id, source_ntt_manager, ntt_manager_message) =
204200 validated_message.destruct_recipient_only (&ntt::auth ::new_auth (), state);
@@ -281,7 +277,7 @@ module ntt::ntt {
281277
282278 version_gated.check_version (state);
283279
284- assert ! (! state.is_paused (), EPaused );
280+ state.assert_not_paused ( );
285281
286282 // NOTE: this validates that the message has enough votes etc
287283 let released = state.try_release_in (chain_id, message, clock);
0 commit comments