Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Arbitrum tests #1230

Merged
merged 24 commits into from
Nov 3, 2022
Merged

Arbitrum tests #1230

merged 24 commits into from
Nov 3, 2022

Conversation

sveitser
Copy link
Contributor

@sveitser sveitser commented Oct 28, 2022

Add bin/run-tests-arbitrum script to run tests against arbitrum. This re-uses the libraries to save some gas and time.

Fixes `cape::events::tests::test_fetch_cape_memos_from_event`
If `CAPE_WEB3_PROVIDER_URL` is `get_funded_client()` returns the same
client each time its called.

Use a `call` instead of a `send` to avoid requiring a funded client.

This still ensures that the call fails for the right reason (the
function was called from the wrong account) because we match against the
revert reason.
@sveitser sveitser marked this pull request as ready for review November 1, 2022 10:15
We previously set the limit manually but this is tricky because gas cost
is different on arbitrum. By adding the 10M to the estimate instead it
should work for both L1's and arbitrum.

Remove the test that tests if the extra gas has effect. The test would
be a bit involved to rewrite right now because we can't set a too low
gas limit directly anymore.
@sveitser
Copy link
Contributor Author

sveitser commented Nov 1, 2022

The test cape::events::tests::test_fetch_cape_memos_from_event keeps failing on the CI but passes locally.

Copy link
Collaborator

@philippecamacho philippecamacho left a comment

Choose a reason for hiding this comment

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

LGTM

@sveitser sveitser enabled auto-merge (squash) November 3, 2022 15:42
@sveitser sveitser merged commit 77e70f9 into main Nov 3, 2022
@sveitser sveitser deleted the arbitrum-tests branch November 3, 2022 16:34
@sveitser sveitser mentioned this pull request Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants