Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
magecnion committed Jul 24, 2024
1 parent 908fba8 commit 26a8949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/tests/test-evolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describeWithExistingNode("Frontier RPC (Mint and Evolve Assets)", (context) => {
});
});

describeWithExistingNode("@qa Frontier RPC (Public Minting)", (context) => {
describeWithExistingNode("Frontier RPC (Public Minting)", (context) => {
let collectionContract: Contract;

beforeEach(async function () {
Expand Down Expand Up @@ -251,7 +251,7 @@ describeWithExistingNode("@qa Frontier RPC (Public Minting)", (context) => {
});
});

describeWithExistingNode("@qa Frontier RPC (Transfer Ownership)", (context) => {
describeWithExistingNode("Frontier RPC (Transfer Ownership)", (context) => {
let collectionContract: Contract;

before(async function () {
Expand Down
8 changes: 6 additions & 2 deletions e2e-tests/tests/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function customRequest(web3: Web3, method: string, params: any[]) {
export function describeWithExistingNode(
title: string,
cb: (context: { web3: Web3; polkadot: ApiPromise }) => void,
provider?: string
providerNodeUrl?: string
) {
describe(title, () => {
let context: {
Expand All @@ -61,7 +61,11 @@ export function describeWithExistingNode(
};

before(async () => {
if (!provider) {
if (providerNodeUrl) {
context.web3 = new Web3(providerNodeUrl);
const wsProvider = new HttpProvider(providerNodeUrl);
context.polkadot = await new ApiPromise({ provider: wsProvider }).isReady;
} else {
context.web3 = new Web3(LOCAL_NODE_URL);
const wsProvider = new HttpProvider(LOCAL_NODE_URL);
context.polkadot = await new ApiPromise({ provider: wsProvider }).isReady;
Expand Down

0 comments on commit 26a8949

Please sign in to comment.