@@ -443,7 +443,7 @@ async fn test_load_from_remote_erc721(sequencer: &RunnerCtx) {
443
443
format ! (
444
444
"SELECT balance FROM token_balances WHERE account_address = '{:#x}' AND \
445
445
contract_address = '{:#x}' AND token_id = '{:#x}:{}'",
446
- account . address ( ) ,
446
+ Felt :: ONE ,
447
447
badge_address,
448
448
badge_address,
449
449
u256_to_sql_string( & U256 :: from( token_id as u32 ) )
@@ -457,8 +457,8 @@ async fn test_load_from_remote_erc721(sequencer: &RunnerCtx) {
457
457
let balance = crypto_bigint:: U256 :: from_be_hex ( balance. trim_start_matches ( "0x" ) ) ;
458
458
assert_eq ! (
459
459
U256 :: from( balance) ,
460
- U256 :: from( 0u8 ) ,
461
- "Sender should have balance of 0 for transferred tokens"
460
+ U256 :: from( 1u8 ) ,
461
+ "Sender should have balance of 1 for transferred tokens"
462
462
) ;
463
463
}
464
464
@@ -497,6 +497,7 @@ async fn test_load_from_remote_erc1155(sequencer: &RunnerCtx) {
497
497
let ws = scarb:: ops:: read_workspace ( config. manifest_path ( ) , & config) . unwrap ( ) ;
498
498
499
499
let account = sequencer. account ( 0 ) ;
500
+ let other_account = sequencer. account ( 1 ) ;
500
501
let provider = Arc :: new ( JsonRpcClient :: new ( HttpTransport :: new ( sequencer. url ( ) ) ) ) ;
501
502
502
503
let world_local = ws. load_world_local ( ) . unwrap ( ) ;
@@ -533,7 +534,7 @@ async fn test_load_from_remote_erc1155(sequencer: &RunnerCtx) {
533
534
. execute_v1 ( vec ! [ Call {
534
535
to: rewards_address,
535
536
selector: get_selector_from_name( "mint" ) . unwrap( ) ,
536
- calldata: vec![ Felt :: ZERO , Felt :: from( * token_id) , Felt :: ZERO , Felt :: from( * amount) ] ,
537
+ calldata: vec![ Felt :: from( * token_id) , Felt :: ZERO , Felt :: from( * amount) , Felt :: ZERO ] ,
537
538
} ] )
538
539
. send ( )
539
540
. await
@@ -550,11 +551,12 @@ async fn test_load_from_remote_erc1155(sequencer: &RunnerCtx) {
550
551
selector: get_selector_from_name( "transfer_from" ) . unwrap( ) ,
551
552
calldata: vec![
552
553
account. address( ) ,
553
- Felt :: ONE ,
554
+ other_account . address ( ) ,
554
555
Felt :: from( * token_id) ,
555
556
Felt :: ZERO ,
556
557
Felt :: from( amount / 2 ) ,
557
558
Felt :: ZERO ,
559
+ Felt :: ZERO ,
558
560
] ,
559
561
} ] )
560
562
. send ( )
@@ -619,7 +621,7 @@ async fn test_load_from_remote_erc1155(sequencer: &RunnerCtx) {
619
621
format ! (
620
622
"SELECT balance FROM token_balances WHERE account_address = '{:#x}' AND \
621
623
contract_address = '{:#x}' AND token_id = '{:#x}:{}'",
622
- Felt :: ONE ,
624
+ other_account . address ( ) ,
623
625
rewards_address,
624
626
rewards_address,
625
627
u256_to_sql_string( & U256 :: from( token_id as u32 ) )
0 commit comments