@@ -22,8 +22,8 @@ use sp_domains::proof_provider_and_verifier::{StorageProofVerifier, Verification
22
22
use sp_domains:: DomainAllowlistUpdates ;
23
23
use sp_messenger:: endpoint:: { Endpoint , EndpointPayload , EndpointRequest , Sender } ;
24
24
use sp_messenger:: messages:: {
25
- ChainId , ChannelOpenParams , CrossDomainMessage , MessageWeightTag , Payload , Proof ,
26
- ProtocolMessageRequest , RequestResponse , VersionedPayload ,
25
+ ChainId , ChannelOpenParams , ChannelOpenParamsV1 , CrossDomainMessage , MessageWeightTag ,
26
+ PayloadV1 , Proof , ProtocolMessageRequest , RequestResponse , VersionedPayload ,
27
27
} ;
28
28
use sp_mmr_primitives:: { EncodableOpaqueLeaf , LeafProof as MmrProof } ;
29
29
use sp_runtime:: traits:: { Convert , Zero } ;
@@ -64,10 +64,9 @@ fn create_channel(chain_id: ChainId, channel_id: ChannelId) {
64
64
assert_eq ! ( msg. channel_id, channel_id) ;
65
65
assert_eq ! (
66
66
msg. payload,
67
- VersionedPayload :: V0 ( Payload :: Protocol ( RequestResponse :: Request (
68
- ProtocolMessageRequest :: ChannelOpen ( ChannelOpenParams {
67
+ VersionedPayload :: V1 ( PayloadV1 :: Protocol ( RequestResponse :: Request (
68
+ ProtocolMessageRequest :: ChannelOpen ( ChannelOpenParamsV1 {
69
69
max_outgoing_messages: 25 ,
70
- fee_model: <chain_a:: Runtime as crate :: Config >:: ChannelFeeModel :: get( )
71
70
} )
72
71
) ) )
73
72
) ;
@@ -127,7 +126,7 @@ fn close_channel(chain_id: ChainId, channel_id: ChannelId, last_delivered_nonce:
127
126
) ;
128
127
assert_eq ! (
129
128
msg. payload,
130
- VersionedPayload :: V0 ( Payload :: Protocol ( RequestResponse :: Request (
129
+ VersionedPayload :: V1 ( PayloadV1 :: Protocol ( RequestResponse :: Request (
131
130
ProtocolMessageRequest :: ChannelClose
132
131
) ) )
133
132
) ;
0 commit comments