@@ -237,20 +237,20 @@ public function test_it_can_approve_a_token_with_ss58_signing_account(): void
237237 $ newOwner = Wallet::factory ()->create ([
238238 'public_key ' => $ signingAccount = app (Generator::class)->public_key (),
239239 ]);
240- Token::factory ([
240+ $ newToken = Token::factory ([
241241 'collection_id ' => $ collection = Collection::factory (['owner_wallet_id ' => $ newOwner ])->create (),
242242 ])->create ();
243243 $ encodedData = TransactionSerializer::encode ($ this ->method , ApproveTokenMutation::getEncodableParams (
244244 collectionId: $ collectionId = $ collection ->collection_chain_id ,
245- tokenId: $ this ->tokenIdEncoder ->encode (),
245+ tokenId: $ this ->tokenIdEncoder ->encode ($ newToken -> token_chain_id ),
246246 operator: $ operator = app (Generator::class)->public_key (),
247247 amount: $ amount = $ this ->tokenAccount ->balance ,
248248 currentAmount: $ currentAmount = $ this ->tokenAccount ->balance ,
249249 ));
250250
251251 $ response = $ this ->graphql ($ this ->method , [
252252 'collectionId ' => $ collectionId ,
253- 'tokenId ' => $ this ->tokenIdEncoder ->toEncodable (),
253+ 'tokenId ' => $ this ->tokenIdEncoder ->toEncodable ($ newToken -> token_chain_id ),
254254 'amount ' => $ amount ,
255255 'currentAmount ' => $ currentAmount ,
256256 'operator ' => SS58Address::encode ($ operator ),
@@ -283,12 +283,12 @@ public function test_it_can_approve_a_token_with_public_key_signing_account(): v
283283 $ newOwner = Wallet::factory ()->create ([
284284 'public_key ' => $ signingAccount = app (Generator::class)->public_key (),
285285 ]);
286- Token::factory ([
286+ $ newToken = Token::factory ([
287287 'collection_id ' => $ collection = Collection::factory (['owner_wallet_id ' => $ newOwner ])->create (),
288288 ])->create ();
289289 $ encodedData = TransactionSerializer::encode ($ this ->method , ApproveTokenMutation::getEncodableParams (
290290 collectionId: $ collectionId = $ collection ->collection_chain_id ,
291- tokenId: $ this ->tokenIdEncoder ->encode (),
291+ tokenId: $ this ->tokenIdEncoder ->encode ($ newToken -> token_chain_id ),
292292 operator: $ operator = app (Generator::class)->public_key (),
293293 amount: $ amount = $ this ->tokenAccount ->balance ,
294294 currentAmount: $ currentAmount = $ this ->tokenAccount ->balance ,
@@ -297,7 +297,7 @@ public function test_it_can_approve_a_token_with_public_key_signing_account(): v
297297
298298 $ response = $ this ->graphql ($ this ->method , [
299299 'collectionId ' => $ collectionId ,
300- 'tokenId ' => $ this ->tokenIdEncoder ->toEncodable (),
300+ 'tokenId ' => $ this ->tokenIdEncoder ->toEncodable ($ newToken -> token_chain_id ),
301301 'amount ' => $ amount ,
302302 'currentAmount ' => $ currentAmount ,
303303 'operator ' => SS58Address::encode ($ operator ),
0 commit comments