@@ -508,9 +508,9 @@ async function transfer(originFederators, destinationFederators, config, origin,
508508 logger . info ( `${ destination } token balance` , balance ) ;
509509 let destinationInitialUserBalance = balance ;
510510
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')
514514 const userLargeAmount = originWeb3 . utils . toWei ( '1.32' ) ;
515515 const userAppoveTotalAmount = originWeb3 . utils . toWei ( '10' ) ;
516516
@@ -520,18 +520,18 @@ async function transfer(originFederators, destinationFederators, config, origin,
520520 await methodCall . call ( { from : userAddress } ) ;
521521 await transactionSender . sendTransaction ( anotherTokenAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
522522
523- // Cross AnotherToken (type id 0) Small Amount < toWei('0.1 ')
523+ // Cross AnotherToken (type id 0) Small Amount < toWei('0.01 ')
524524 methodCall = bridgeContract . methods . receiveTokensTo ( anotherTokenAddress , userAddress , userSmallAmount ) ;
525525 await methodCall . call ( { from : userAddress } ) ;
526526 const smallAmountReceipt = await transactionSender . sendTransaction ( originBridgeAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
527527
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')
529529 methodCall = bridgeContract . methods . receiveTokensTo ( anotherTokenAddress , userAddress , userMediumAmount ) ;
530530 await methodCall . call ( { from : userAddress } ) ;
531531 const mediumAmountReceipt = await transactionSender . sendTransaction ( originBridgeAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
532532
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 )
535535 await methodCall . call ( { from : userAddress } ) ;
536536 const largeAmountReceipt = await transactionSender . sendTransaction ( originBridgeAddress , methodCall . encodeABI ( ) , 0 , userPrivateKey , true ) ;
537537
0 commit comments