@@ -181,6 +181,7 @@ async fn test_nft_approve_call_long_msg_string(
181181) -> anyhow:: Result < ( ) > {
182182 let token_id = "3" ;
183183 helpers:: mint_nft ( user, nft_contract, worker, token_id) . await ?;
184+ helpers:: pay_for_storage ( user, market_contract, worker, 10000000000000000000000 ) . await ?;
184185
185186 let approve_payload = json ! ( {
186187 "token_id" : token_id,
@@ -191,6 +192,7 @@ async fn test_nft_approve_call_long_msg_string(
191192 match user. call ( & worker, nft_contract. id ( ) , "nft_approve" )
192193 . args_json ( approve_payload) ?
193194 . deposit ( helpers:: DEFAULT_DEPOSIT )
195+ . gas ( helpers:: DEFAULT_GAS as u64 )
194196 . transact ( )
195197 . await
196198 {
@@ -200,7 +202,7 @@ async fn test_nft_approve_call_long_msg_string(
200202 Err ( e) => {
201203 let e_string = e. to_string ( ) ;
202204 if !e_string
203- . contains ( "Exceeded the prepaid gas " )
205+ . contains ( "Not valid SaleArgs " )
204206 {
205207 panic ! ( "test_nft_approve_call_long_msg_string displays unexpected error message: {:?}" , e_string) ;
206208 }
@@ -216,7 +218,7 @@ async fn test_nft_approve_call_long_msg_string(
216218 . await ?
217219 . json ( ) ?;
218220
219- assert_eq ! ( result, false ) ;
221+ assert_eq ! ( result, true ) ;
220222 println ! ( " Passed ✅ test_nft_approve_call_long_msg_string" ) ;
221223 }
222224 }
0 commit comments