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

Use test constants keys/function address #14

Closed
wants to merge 1 commit into from
Closed

Conversation

heliuchuan
Copy link
Contributor

Description

Turns the commonly used test private keys and entry function addresses into consts

Test Plan

pnpm test

@heliuchuan heliuchuan requested a review from a team as a code owner October 11, 2023 06:39
@@ -26,7 +27,7 @@ describe("transaction submission", () => {
const aptos = new Aptos(config);
const alice = Account.fromPrivateKey({
privateKey: new Ed25519PrivateKey({
hexInput: "0x5aba8dab1c523be32bd4dafe2cc612f7f8050ce42a3322b60216ef67dc97768c",
hexInput: ALICE_PRIVATE_KEY,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests are going to change. We now test it against devnet and eventually will change it to run against localnet. We had these fix accounts because we couldn't use the fund query so we fund it using the cli and "created" it on devnet.
We will probably not use any fix private keys to create an account but create and fund it on run time

Copy link
Collaborator

@0xmaayan 0xmaayan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests are going to change

@heliuchuan heliuchuan closed this Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants