-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No logical changes, just a few utility functions to make code and tests more coherent for upcoming Full Pipeline PR. We add one convenience method that attempts to simulate on incrementing consecutive blocks, until a max attempts is reached. Its lightly tested on an example case that is known to fail the first time.
- Loading branch information
Showing
4 changed files
with
36 additions
and
11 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { MinimalTxData } from "../../src/accounting"; | ||
import { ethers } from "ethers"; | ||
import { getTxDataFromHash } from "../../src/utils"; | ||
|
||
export async function getTxData(txHash: string): Promise<MinimalTxData> { | ||
const provider = ethers.getDefaultProvider( | ||
process.env["NODE_URL"] || "NODE_URL" | ||
); | ||
return getTxDataFromHash(provider, txHash); | ||
} |
11 changes: 1 addition & 10 deletions
11
internal_transfers/actions/tests/e2e/simulateSolverSolution.spec.ts
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