Skip to content

Conversation

@aquarat
Copy link
Contributor

@aquarat aquarat commented Sep 20, 2024

No description provided.

@aquarat aquarat changed the base branch from master to dcroote/issue1918 September 20, 2024 10:42
@aquarat aquarat changed the title Aquarat/issue1918 experiments Attempt to replace HH Node with Anvil to allow upgrade to Node 20 Sep 20, 2024
"chai": "^4.4.1",
"ethereum-waffle": "^4.0.10",
"hardhat": "^2.19.5",
"hardhat": "^2.23.0-dev.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This didn't help.

const res = build.buildRequest(options);
expect(res).toEqual({
baseUrl: 'http://localhost:5000',
baseUrl: 'http://localhost:5005',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mac OS runs an Airdrop service on this port.

it('uses transaction overrides', async () => {
await expect(sdk.sponsorRequester(wallet.address, { gasLimit: 1 })).rejects.toThrow(
'Transaction requires at least 21572 gas but got 1'
expect.objectContaining({name: expect.stringContaining('Error'), message: expect.stringContaining('gas')})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Anvil returns a different error message for gas compared to HH Node.


const resetAnvil = async () => {
spawn("bash", ["-c", 'killall anvil;']);
await new Promise(f => setTimeout(f, 1000));
Copy link
Contributor Author

@aquarat aquarat Sep 20, 2024

Choose a reason for hiding this comment

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

Ideally starting and stopping Anvil could be managed in code or handled more intelligently.

A more comprehensive approach can be found here: https://github.com/api3dao/oev-searcher-poc/blob/main/src/simulation.ts

Base automatically changed from dcroote/issue1918 to master January 29, 2025 16:38
@dcroote
Copy link
Contributor

dcroote commented Jan 30, 2025

If it's OK I think we can close this given #1920 is merged. Thanks so much for trying @aquarat - this one was so frustrating (for everyone I think I can safely say haha).

@dcroote dcroote closed this Jan 30, 2025
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.

3 participants