@@ -424,11 +424,13 @@ fn xcm_converter_convert_success() {
424424 . into ( ) ;
425425 let mut converter =
426426 XcmConverter :: < MockTokenIdConvert , ( ) > :: new ( & message, network, Default :: default ( ) ) ;
427- let expected_payload = Command :: TransferNativeToken {
427+ let expected_payload = Command :: AgentExecute {
428428 agent_id : Default :: default ( ) ,
429- token : token_address. into ( ) ,
430- recipient : beneficiary_address. into ( ) ,
431- amount : 1000 ,
429+ command : AgentExecuteCommand :: TransferToken {
430+ token : token_address. into ( ) ,
431+ recipient : beneficiary_address. into ( ) ,
432+ amount : 1000 ,
433+ } ,
432434 } ;
433435 let result = converter. convert ( ) ;
434436 assert_eq ! ( result, Ok ( ( expected_payload, [ 0 ; 32 ] ) ) ) ;
@@ -459,11 +461,13 @@ fn xcm_converter_convert_without_buy_execution_yields_success() {
459461 . into ( ) ;
460462 let mut converter =
461463 XcmConverter :: < MockTokenIdConvert , ( ) > :: new ( & message, network, Default :: default ( ) ) ;
462- let expected_payload = Command :: TransferNativeToken {
464+ let expected_payload = Command :: AgentExecute {
463465 agent_id : Default :: default ( ) ,
464- token : token_address. into ( ) ,
465- recipient : beneficiary_address. into ( ) ,
466- amount : 1000 ,
466+ command : AgentExecuteCommand :: TransferToken {
467+ token : token_address. into ( ) ,
468+ recipient : beneficiary_address. into ( ) ,
469+ amount : 1000 ,
470+ } ,
467471 } ;
468472 let result = converter. convert ( ) ;
469473 assert_eq ! ( result, Ok ( ( expected_payload, [ 0 ; 32 ] ) ) ) ;
@@ -496,11 +500,13 @@ fn xcm_converter_convert_with_wildcard_all_asset_filter_succeeds() {
496500 . into ( ) ;
497501 let mut converter =
498502 XcmConverter :: < MockTokenIdConvert , ( ) > :: new ( & message, network, Default :: default ( ) ) ;
499- let expected_payload = Command :: TransferNativeToken {
503+ let expected_payload = Command :: AgentExecute {
500504 agent_id : Default :: default ( ) ,
501- token : token_address. into ( ) ,
502- recipient : beneficiary_address. into ( ) ,
503- amount : 1000 ,
505+ command : AgentExecuteCommand :: TransferToken {
506+ token : token_address. into ( ) ,
507+ recipient : beneficiary_address. into ( ) ,
508+ amount : 1000 ,
509+ } ,
504510 } ;
505511 let result = converter. convert ( ) ;
506512 assert_eq ! ( result, Ok ( ( expected_payload, [ 0 ; 32 ] ) ) ) ;
@@ -533,11 +539,13 @@ fn xcm_converter_convert_with_fees_less_than_reserve_yields_success() {
533539 . into ( ) ;
534540 let mut converter =
535541 XcmConverter :: < MockTokenIdConvert , ( ) > :: new ( & message, network, Default :: default ( ) ) ;
536- let expected_payload = Command :: TransferNativeToken {
542+ let expected_payload = Command :: AgentExecute {
537543 agent_id : Default :: default ( ) ,
538- token : token_address. into ( ) ,
539- recipient : beneficiary_address. into ( ) ,
540- amount : 1000 ,
544+ command : AgentExecuteCommand :: TransferToken {
545+ token : token_address. into ( ) ,
546+ recipient : beneficiary_address. into ( ) ,
547+ amount : 1000 ,
548+ } ,
541549 } ;
542550 let result = converter. convert ( ) ;
543551 assert_eq ! ( result, Ok ( ( expected_payload, [ 0 ; 32 ] ) ) ) ;
0 commit comments