Skip to content

Commit

Permalink
test: udpated incorrect value
Browse files Browse the repository at this point in the history
  • Loading branch information
ahramy committed Aug 17, 2024
1 parent 9b50942 commit 8a1d702
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/AddressDerivation.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { approveContractCall } = require('../scripts/utils');
const { getRandomBytes32, getSaltFromKey, isHardhat, getContractJSON } = require('./utils');
const { create3DeployContract } = require('@axelar-network/axelar-gmp-sdk-solidity');
const Token = getContractJSON('TestInterchainTokenStandard');
const { MINT_BURN, MESSAGE_TYPE_DEPLOY_INTERCHAIN_TOKEN } = require('./constants');
const { NATIVE_INTERCHAIN_TOKEN, MESSAGE_TYPE_DEPLOY_INTERCHAIN_TOKEN } = require('./constants');

if (isHardhat) {
describe('Token Address Derivation [ @skip-on-coverage ]', () => {
Expand Down Expand Up @@ -60,7 +60,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, wallet.address, tokenName, tokenSymbol, tokenDecimals)
.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});

it('Should derive the correct token address for remote interchain token deployment', async () => {
Expand All @@ -83,7 +83,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, minter, tokenName, tokenSymbol, tokenDecimals)
.and.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});

it('Should derive the correct token address for remote interchain token deployment with empty minter and operator', async () => {
Expand All @@ -106,7 +106,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, AddressZero, tokenName, tokenSymbol, tokenDecimals)
.and.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});
});

Expand All @@ -126,7 +126,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, tokenFactory.address, tokenName, tokenSymbol, tokenDecimals)
.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});

it('Should derive the correct token address for remote interchain token deployment', async () => {
Expand All @@ -150,7 +150,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, minter, tokenName, tokenSymbol, tokenDecimals)
.and.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});

it('Should derive the correct token address for remote interchain token deployment with empty minter and operator', async () => {
Expand All @@ -174,7 +174,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, minter, tokenName, tokenSymbol, tokenDecimals)
.and.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});

it('Should derive the correct token address for remote canonical token deployment', async () => {
Expand All @@ -197,7 +197,7 @@ if (isHardhat) {
.to.emit(service, 'InterchainTokenDeployed')
.withArgs(tokenId, expectedTokenAddress, minter, tokenName, tokenSymbol, tokenDecimals)
.and.to.emit(service, 'TokenManagerDeployed')
.withArgs(tokenId, expectedTokenManagerAddress, MINT_BURN, params);
.withArgs(tokenId, expectedTokenManagerAddress, NATIVE_INTERCHAIN_TOKEN, params);
});
});
});
Expand Down

0 comments on commit 8a1d702

Please sign in to comment.