Skip to content

Commit

Permalink
refactor: make bridge test generic
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGuru7 committed Feb 23, 2024
1 parent fefc614 commit 8474b1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/vaiBridge.ts → test/mintableTokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import {
TokenBridgeController__factory,
} from "../typechain";

describe("VAI Bridge:", function () {
describe("Multichain Bridge:", function () {
const localChainId = 1;
const remoteChainId = 2;
const name = "VAI stablecoin";
const symbol = "VAI";
const name = "MultichainToken";
const symbol = "MT";
const sharedDecimals = 8;
const singleTransactionLimit = convertToUnit(10, 18);
const maxDailyTransactionLimit = convertToUnit(100, 18);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TokenBridgeAdmin,
} from "../typechain";

describe("Token Bridge Admin: ", function () {
describe("Multichain Token Bridge Admin: ", function () {
const localChainId = 1;
const remoteChainId = 2;
const singleTransactionLimit = convertToUnit(10, 18);
Expand Down Expand Up @@ -99,7 +99,7 @@ describe("Token Bridge Admin: ", function () {
RemoteTokenFactory = await ethers.getContractFactory("MultichainToken");

accessControlManager = await accessControlManagerFactory.deploy();
remoteToken = await RemoteTokenFactory.deploy(accessControlManager.address, "VAI StableCoin", "VAI");
remoteToken = await RemoteTokenFactory.deploy(accessControlManager.address, "MultichainToken", "MT");
remoteEndpoint = await LZEndpointMock.deploy(remoteChainId);
remoteOFT = await ProxyOFTV2Dest.deploy(remoteToken.address, 8, remoteEndpoint.address, AddressOne, true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SignerWithAddress } from "hardhat-deploy-ethers/signers";

import { AccessControlManager, MultichainToken, MultichainToken__factory } from "../typechain";

describe("Token Controller: ", function () {
describe("Multichain Token Controller: ", function () {
let tokenFactory: MultichainToken__factory,
token: MultichainToken,
acc2: SignerWithAddress,
Expand All @@ -17,7 +17,7 @@ describe("Token Controller: ", function () {
accessControlManager = await smock.fake<AccessControlManager>("AccessControlManager");
accessControlManager.isAllowedToCall.returns(true);
tokenFactory = await ethers.getContractFactory("MultichainToken");
token = await tokenFactory.deploy(accessControlManager.address, "VAI StableCoin", "VAI");
token = await tokenFactory.deploy(accessControlManager.address, "MultichainToken", "MT");
acc1 = (await ethers.getSigners())[0];
acc2 = (await ethers.getSigners())[1];
};
Expand Down

0 comments on commit 8474b1f

Please sign in to comment.