-
Notifications
You must be signed in to change notification settings - Fork 0
Fix contract tests #371
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
Fix contract tests #371
Changes from all commits
78ba19f
52e51e9
c48a764
929ea2f
54bec68
c57546e
f27e576
ed0357e
2456df6
91d030d
3b2b802
a6cce30
2807f51
e9930db
42c16d7
57a72ae
1618255
2584065
120ff12
5e1d748
53ac8ba
44e911e
67a7fc6
6ace756
21719d0
278aee0
47fad24
7a9a8dd
391beff
227eba0
1f801f3
2237a62
b8c19c5
4105d57
954f6ff
24243b7
0c1d0cf
884c8a3
9c2c4c7
ae75350
6d016c5
95c57f9
cfa0608
45839f2
d5c5d56
9c198f4
24946c9
5de3d5b
14198f3
29f1f1d
4ca1dee
d42432f
eb76937
3ce31b4
3e292a2
629080d
2cc3acd
e5cbb86
dd7bccb
8349427
f597a68
debc6cd
98aff96
1df9b3c
45d33ea
37dc8e3
2acf704
c2e6314
df083f0
3feb034
c7e7bb8
45d39d7
31b96eb
e14f011
495f4d7
77ca0db
9b817e5
fb5d271
4de3c47
a1c171e
45191ac
76c8988
aa28963
95bec9e
bb8ee33
efed037
08dce53
3ecbeae
da863c1
57bcf28
e72127a
1375218
2142057
7d2bf39
ec13e36
f42c785
20d057b
f5a2278
dd2d7ab
260e312
15ab623
0df0181
7199a2d
48b083d
e3d03f3
e78527f
d7fd525
ef014b0
1b9024f
2df7e68
8316baf
3308796
661b690
f21cdc3
dbfd1b0
a8097ff
85f9021
59ebf90
450efe9
0f61ed7
6eac3f3
e5faced
562fcc9
c15add8
de407dc
676479c
6188e5e
c244910
6710ab6
7bbed0c
64bf31f
08f2fdb
f8c3dc5
446feb3
5ccb8e6
9b9c939
e46158d
1bd7953
5bbfe93
526b647
bc7a2d9
d8aa807
a9bfbd7
f23fed4
2c8807f
c86b6e5
6389ca8
34b6d68
9002965
9fb2f02
17900af
b391abd
cbc386e
0326bc4
8cff2be
ad627c7
d089948
13b940b
86e3ee9
4b110ce
20bf319
1e97d4f
96cdadc
d8fee0a
27b14d0
39a5bab
679d444
72cc64d
3cbd328
71e9695
b351ed5
c7699eb
56e454f
3c10bd5
d3336bf
f99f916
f8fc4f2
99e074e
1cd5f12
ea15589
fb89c4a
cd5215a
c3eef94
5c0de38
6f1a25d
6d98282
cd415d8
2ea9015
0972410
cfe221a
0342715
8ec4f57
ac798f0
c16b330
6c92a6f
57901fa
0e23124
3e93580
bf08557
c82f900
e957a25
ad68bd2
3a5ef7d
0875b53
6e0cf88
7693670
715b4d3
668dec0
0fcea25
ee731c8
6f48f1f
8a2d753
f6d0dd6
bf1bcbd
b35aea2
8c802c9
7eee382
a50d657
e6fba93
e2418b9
a1b3607
ae0e5e4
8c1347b
20929d9
d0badf9
c04f808
e03399b
a8e23e7
2e7fd08
2eded28
df2de33
57df4df
2f46b0c
c1b4a7c
defeb54
b9a8531
0badb15
c919c41
45f8a0d
b6bee14
a8c0355
330edcf
e1e7dd1
cb7464f
bdd42dc
6d62617
837912f
7a4c2bd
3024537
d3ba3fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,12 @@ jobs: | |
| - name: Install Foundry | ||
| uses: foundry-rs/foundry-toolchain@v1 | ||
| with: | ||
| version: nightly-654c8f01721e43dbc8a53c7a3b022548cb82b2f9 | ||
| # Pinned to stable 1.2.3 rather than the nightly used elsewhere. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also pin it in the Nix flake?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated: 6d62617 |
||
| # The nightly (654c8f01) added strict vm.getCode artifact matching that errors | ||
| # when two contracts share the same name (e.g. src/universal/Proxy.sol and | ||
| # OZ v5's proxy/Proxy.sol). Fixing every upstream call-site would touch many | ||
| # Celo/OP-stack files. | ||
| version: "1.2.3" | ||
|
|
||
| - name: Install Just | ||
| uses: extractions/setup-just@v2 | ||
|
|
@@ -44,6 +49,8 @@ jobs: | |
| run: forge fmt --check | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we now skipping this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC, there were some format issues unrelated to our change, so I disabled the check. I've just restored it and will see if the CI passes. 837912f
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah the format check doesn't break the CI, so I'll just keep it! |
||
|
|
||
| - name: Run L1 contracts tests | ||
| timeout-minutes: 20 | ||
| working-directory: packages/contracts-bedrock | ||
| env: | ||
| FOUNDRY_PROFILE: lite | ||
| run: forge test --match-path "test/L1/*.t.sol" -vv | ||
|
|
||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For fixing the integration test panic. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,13 +177,19 @@ func NewBatchSubmitter(setup DriverSetup) *BatchSubmitter { | |
| } | ||
|
|
||
| l1Adapter := &batcherL1Adapter{L1Client: batchSubmitter.L1Client} | ||
| // Convert typed nil pointer to untyped nil interface to avoid typed-nil interface panic | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Go is such a nice language, isn't it?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's perfect. 🤣 |
||
| // in confirmEspressoBlockHeight when EspressoLightClient is not configured. | ||
| var lightClientIface espresso.LightClientCallerInterface | ||
| if batchSubmitter.EspressoLightClient != nil { | ||
| lightClientIface = batchSubmitter.EspressoLightClient | ||
| } | ||
| batchSubmitter.espressoStreamer = espresso.NewBufferedEspressoStreamer( | ||
| espresso.NewEspressoStreamer( | ||
| batchSubmitter.RollupConfig.L2ChainID.Uint64(), | ||
| l1Adapter, | ||
| l1Adapter, | ||
| batchSubmitter.Espresso, | ||
| batchSubmitter.EspressoLightClient, | ||
| lightClientIface, | ||
| batchSubmitter.Log, | ||
| func(data []byte) (*derive.EspressoBatch, error) { | ||
| return derive.UnmarshalEspressoTransaction(data, batchSubmitter.SequencerAddress) | ||
|
|
||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the ec2 test fix. |
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redoing the conflict resolution for this file, to take the changes from Celo's Jovian upgrade branch + our Espresso changes. |
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Safe to ignore. Just changes to be up-to-date with 14.2. |
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Safe to ignore. Just changes to be up-to-date with 14.2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file contains the critical change to the foundry version.