@@ -78,7 +78,8 @@ impl<C: Client + Clone> ChainTransactionLoad for SolanaClient<C> {
7878#[ cfg( all( test, feature = "chain_integration_tests" ) ) ]
7979mod chain_integration_tests {
8080 use super :: * ;
81- use crate :: provider:: testkit:: { TEST_ADDRESS , TEST_EMPTY_ADDRESS , create_solana_test_client} ;
81+ use primitives:: testkit:: signer_mock:: TEST_SOLANA_SENDER ;
82+ use crate :: provider:: testkit:: { TEST_EMPTY_ADDRESS , create_solana_test_client} ;
8283 use primitives:: swap:: SwapData ;
8384 use primitives:: { Asset , SwapProvider } ;
8485
@@ -95,8 +96,8 @@ mod chain_integration_tests {
9596 let client = create_solana_test_client ( ) ;
9697 let input = TransactionPreloadInput {
9798 input_type : TransactionInputType :: Transfer ( Asset :: mock_sol ( ) ) ,
98- sender_address : TEST_ADDRESS . to_string ( ) ,
99- destination_address : TEST_ADDRESS . to_string ( ) ,
99+ sender_address : TEST_SOLANA_SENDER . to_string ( ) ,
100+ destination_address : TEST_SOLANA_SENDER . to_string ( ) ,
100101 } ;
101102 let result = client. get_transaction_preload ( input) . await ?;
102103
@@ -114,7 +115,7 @@ mod chain_integration_tests {
114115 let client = create_solana_test_client ( ) ;
115116 let input = TransactionPreloadInput {
116117 input_type : TransactionInputType :: Transfer ( Asset :: mock_spl_token ( ) ) ,
117- sender_address : TEST_ADDRESS . to_string ( ) ,
118+ sender_address : TEST_SOLANA_SENDER . to_string ( ) ,
118119 destination_address : "4BgapREafMMprtU6CehRmH8LUY26PRFmGf7K4S44oSMW" . to_string ( ) ,
119120 } ;
120121
@@ -135,8 +136,8 @@ mod chain_integration_tests {
135136 let swap_data = SwapData :: mock_with_provider ( SwapProvider :: Jupiter ) ;
136137 let input = TransactionPreloadInput {
137138 input_type : TransactionInputType :: Swap ( Asset :: mock_spl_token ( ) . clone ( ) , Asset :: mock_ethereum_usdc ( ) . clone ( ) , swap_data) ,
138- sender_address : TEST_ADDRESS . to_string ( ) ,
139- destination_address : TEST_ADDRESS . to_string ( ) ,
139+ sender_address : TEST_SOLANA_SENDER . to_string ( ) ,
140+ destination_address : TEST_SOLANA_SENDER . to_string ( ) ,
140141 } ;
141142
142143 let result = client. get_transaction_preload ( input) . await ?;
@@ -161,7 +162,7 @@ mod chain_integration_tests {
161162 let swap_data = SwapData :: mock_with_provider ( SwapProvider :: Jupiter ) ;
162163 let input = TransactionPreloadInput {
163164 input_type : TransactionInputType :: Swap ( Asset :: mock_spl_token ( ) , Asset :: mock_spl_token ( ) , swap_data) ,
164- sender_address : TEST_ADDRESS . to_string ( ) ,
165+ sender_address : TEST_SOLANA_SENDER . to_string ( ) ,
165166 destination_address : TEST_EMPTY_ADDRESS . to_string ( ) ,
166167 } ;
167168
0 commit comments