Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable commented out test #13

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions tests/e2e/api/transaction_submission.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,10 @@ describe("transaction submission", () => {
},
});
expect(response).toHaveProperty("hash");
await aptos.waitForTransaction({txnHash: response.hash})
});

// Currently this test fails because we don't wait for the previous transaction to be executed
// and we end up with transaction is already in mempool. This is because we are still missing
// waitForTransaction query and/or the fund query (so we can create an account and then fund it
// to create it on chain) - Anyhow, I tested each test individually and it works.
// The whole test flow should work once we have the option to wait for transaction and/or fund
// an account to create it on chain
// FIXME: Fix this test
/*test("it submits an entry function transaction", async () => {
test("it submits an entry function transaction", async () => {
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);
const alice = Account.fromPrivateKey({
Expand All @@ -296,6 +290,7 @@ describe("transaction submission", () => {
senderAuthenticator: authenticator,
});
expect(response).toHaveProperty("hash");
});*/
await aptos.waitForTransaction({txnHash: response.hash})
});
});
});