@@ -508,9 +508,9 @@ async function transfer(originFederators, destinationFederators, config, origin,
508
508
logger . info ( `${ destination } token balance` , balance ) ;
509
509
let destinationInitialUserBalance = balance ;
510
510
511
- // Cross AnotherToken (type id 0) Small Amount < toWei('0.1')
512
- const userSmallAmount = originWeb3 . utils . toWei ( '0.0516 ' ) ;
513
- const userMediumAmount = originWeb3 . utils . toWei ( '0.109 ' ) ;
511
+ // Cross AnotherToken (type id 0) Small Amount < toWei('0.01')
512
+ const userSmallAmount = originWeb3 . utils . toWei ( '0.0056 ' ) ;
513
+ const userMediumAmount = originWeb3 . utils . toWei ( '0.019 ' ) ; // < toWei('0.1')
514
514
const userLargeAmount = originWeb3 . utils . toWei ( '1.32' ) ;
515
515
const userAppoveTotalAmount = originWeb3 . utils . toWei ( '10' ) ;
516
516
@@ -520,18 +520,18 @@ async function transfer(originFederators, destinationFederators, config, origin,
520
520
await methodCall . call ( { from : userAddress } ) ;
521
521
await transactionSender . sendTransaction ( anotherTokenAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
522
522
523
- // Cross AnotherToken (type id 0) Small Amount < toWei('0.1 ')
523
+ // Cross AnotherToken (type id 0) Small Amount < toWei('0.01 ')
524
524
methodCall = bridgeContract . methods . receiveTokensTo ( anotherTokenAddress , userAddress , userSmallAmount ) ;
525
525
await methodCall . call ( { from : userAddress } ) ;
526
526
const smallAmountReceipt = await transactionSender . sendTransaction ( originBridgeAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
527
527
528
- // Cross AnotherToken (type id 0) Medium Amount >= toWei('0.1 ') && < toWei('1')
528
+ // Cross AnotherToken (type id 0) Medium Amount >= toWei('0.01 ') && < toWei('0. 1')
529
529
methodCall = bridgeContract . methods . receiveTokensTo ( anotherTokenAddress , userAddress , userMediumAmount ) ;
530
530
await methodCall . call ( { from : userAddress } ) ;
531
531
const mediumAmountReceipt = await transactionSender . sendTransaction ( originBridgeAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
532
532
533
- // Cross AnotherToken (type id 0) Large Amount >= toWei('1')
534
- methodCall = bridgeContract . methods . receiveTokensTo ( anotherTokenAddress , userAddress , userLargeAmount )
533
+ // Cross AnotherToken (type id 0) Large Amount >= toWei('0. 1')
534
+ methodCall = bridgeContract . methods . receiveTokensTo ( anotherTokenAddress , userAddress , userLargeAmount )
535
535
await methodCall . call ( { from : userAddress } ) ;
536
536
const largeAmountReceipt = await transactionSender . sendTransaction ( originBridgeAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
537
537
0 commit comments