-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
Description
Implement an end-to-end (E2E) test to validate the cross-chain token transfer functionality. This test ensures that token balances update correctly after transferring tokens between two accounts across chains.
Steps to Reproduce
-
Check Initial Balances:
- Retrieve and verify the initial balance of Account 1 on Chain 1.
- Retrieve and verify the initial balance of Account 2 on Chain 1.
-
Execute Token Transfer:
- Initiate a transfer of
xtokens from Account 1 on Chain 1 to Account 2 on Chain 1 via Account 1 on Chain 2.
- Initiate a transfer of
-
Validate Post-Transfer Balances:
- Verify the balance of Account 1 on Chain 1 is updated correctly to
original_balance - x. - Verify the balance of Account 2 on Chain 1 is updated correctly to
original_balance + x.
- Verify the balance of Account 1 on Chain 1 is updated correctly to
Expected Outcome
- Account 1 on Chain 1 has a balance reduced by the transferred
xtokens. - Account 2 on Chain 1 has a balance increased by the received
xtokens. - No errors are encountered during the cross-chain token transfer process.
Metadata
Metadata
Assignees
Labels
No labels