Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kollegian committed Oct 4, 2024
1 parent fa5bbd0 commit 9da7205
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion integration_test/dapp_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ On the test pipelines, the account used is:

The tests can be ran against already deployed contracts on arctic-1 or on clusters. For arctic-1 the contract addresses are already stored on config directory.
For cluster tests, tests first deploy the contracts and store addresses in a new json created in config directory. For the next
iterations the tests are going to use these addresses.
iterations the tests are going to use these addresses. To run the tests against node cluster, update the endpoints on constants.js file.

To run the tests you can simply pass `-f` flag into the command.
## Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("NFT Marketplace", function () {
const accounts = hre.config.networks[testChain].accounts
const deployerWallet = hre.ethers.Wallet.fromMnemonic(accounts.mnemonic, accounts.path);
deployer = deployerWallet.connect(hre.ethers.provider);
originalSeidConfig = setDaemonConfig(testChain);
originalSeidConfig = await setDaemonConfig(testChain);

({
marketplace,
Expand All @@ -29,7 +29,6 @@ describe("NFT Marketplace", function () {

const deployerSeiAddr = await getSeiAddress(deployer.address);
nftId1 = (await queryLatestNftIds(cw721Address)) + 1;
console.log(nftId1);
const numCwNftsToMint = 2;

for (let i = nftId1; i <= nftId1 + numCwNftsToMint; i++) {
Expand Down Expand Up @@ -148,10 +147,10 @@ describe("NFT Marketplace", function () {
})

after(async function () {
// Set the chain back to regular state
console.log("Resetting")
await execute(`seid config chain-id ${originalSeidConfig["chain-id"]}`)
await execute(`seid config node ${originalSeidConfig["node"]}`)
await execute(`seid config keyring-backend ${originalSeidConfig["keyring-backend"]}`)
// Set the chain back to regular state
console.log("Resetting");
await execute(`seid config chain-id ${originalSeidConfig["chain-id"]}`)
await execute(`seid config node ${originalSeidConfig["node"]}`)
await execute(`seid config keyring-backend ${originalSeidConfig["keyring-backend"]}`)
})
})
6 changes: 1 addition & 5 deletions integration_test/dapp_tests/uniswap/uniswapTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ const {expect} = require("chai");
const testChain = process.env.DAPP_TEST_ENV;
const isFastTrackEnabled = process.env.IS_FAST_TRACK;

/**
* Deploy uniswap contracts =>
*/

describe("Uniswap Test", function () {
let weth9;
let token;
Expand All @@ -38,7 +34,7 @@ describe("Uniswap Test", function () {
let originalSeidConfig;

before(async function () {
originalSeidConfig = setDaemonConfig(testChain);
originalSeidConfig = await setDaemonConfig(testChain);
const accounts = hre.config.networks[testChain].accounts;
const deployerWallet = hre.ethers.Wallet.fromMnemonic(accounts.mnemonic, accounts.path);
deployer = deployerWallet.connect(hre.ethers.provider);
Expand Down
2 changes: 1 addition & 1 deletion integration_test/dapp_tests/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ const transferTokens = async (tokenAddress, sender, destination, amount) => {
return response;
};

async function setupAccountWithMnemonic(baseName, mnemonic, deployer) {
async function setupAccountWithMnemonic(baseName, mnemonic, deployer) {
const uniqueName = `${baseName}-${uuidv4()}`;
const address = await getSeiAddress(deployer.address);
return await addDeployerAccount(uniqueName, address, mnemonic)
Expand Down

0 comments on commit 9da7205

Please sign in to comment.