Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Jan 20, 2025
1 parent 46e65b2 commit 1bf88f1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/its.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ describe('ITS', () => {
const nonce = 0;

// Parameters for Trusted Addresses
const trustedSourceChain = 'Avalanche';
const trustedSourceChain = 'axelar';
const trustedSourceAddress = 'hub';
const otherChain = 'Avalanche';

async function setupGateway() {
calculateNextSigners(gatewayInfo, nonce);
Expand Down Expand Up @@ -196,6 +198,7 @@ describe('ITS', () => {
const tx = txBuilder.tx;

const coin = tx.splitCoins(objectIds.token, [1e9]);
const destinationAddress = '0x1234';
const gas = tx.splitCoins(tx.gas, [1e8]);

const TokenId = await txBuilder.moveCall({
Expand All @@ -212,8 +215,8 @@ describe('ITS', () => {
objectIds.gasService,
TokenId,
coin,
trustedSourceChain,
trustedSourceAddress,
otherChain,
destinationAddress,
'0x', // its token metadata
deployer.toSuiAddress(),
gas,
Expand All @@ -231,7 +234,7 @@ describe('ITS', () => {
// Approve ITS transfer message
const messageType = ITSMessageType.InterchainTokenTransfer;
const tokenId = objectIds.tokenId;
const sourceAddress = trustedSourceAddress;
const sourceAddress = '0x1234';
const destinationAddress = objectIds.itsChannel; // The ITS Channel ID. All ITS messages are sent to this channel
const amount = 1e9;
const data = '0x1234';
Expand Down

0 comments on commit 1bf88f1

Please sign in to comment.