-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: change zerodev e2e tests to use .env wallet (#60)
Requirements - change zerodev e2e tests to use .env wallet - use `waitForUserOperationTxn` and update test timeouts to 50 seconds for tests to account for "replacement underpriced" errors from not waiting enough time for prev. tests' sendUserOperations. Tests: <img width="966" alt="image" src="https://github.com/alchemyplatform/aa-sdk/assets/43521356/b562ff43-9fc2-4d96-b013-49a6c1fec111"> <!-- start pr-codex --> --- ## PR-Codex overview ### Detailed summary - Added `API_KEY` and `OWNER_MNEMONIC` constants to `constants.ts` in `packages/accounts/src/kernel-zerodev/e2e-tests` - Modified `AccountSigner` class in `packages/ethers/src/account-signer.ts` to include `waitForUserOperationTransaction` property - Modified `simple-account.test.ts` in `packages/ethers/e2e-tests`, `packages/core/e2e-tests`, `packages/alchemy/e2e-tests`, and `packages/accounts/src/kernel-zerodev/e2e-tests` to use `await` with `sendUserOperation` and `waitForUserOperationTransaction` methods > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
1 parent
1493765
commit 5b6cbb2
Showing
6 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const API_KEY = process.env.API_KEY!; | ||
export const OWNER_MNEMONIC = process.env.OWNER_MNEMONIC!; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters