-
Notifications
You must be signed in to change notification settings - Fork 185
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
Adds bridge to fvm bootstrapping #7053
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7053 +/- ##
==========================================
+ Coverage 41.25% 41.29% +0.03%
==========================================
Files 2170 2171 +1
Lines 190050 190632 +582
==========================================
+ Hits 78409 78722 +313
- Misses 105097 105361 +264
- Partials 6544 6549 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
12adf5e
to
7ae57c9
Compare
ba6bf93
to
0d96420
Compare
I finished writing all my tests so it is ready for review! @janezpodhostnik There are still some tests failing that I'm confused about. In the evm tests, the bootstrapping is failing with this error:
Do you know why the ABI decoding would fail in that test but not in any of the fvm tests? |
0d96420
to
2ae0bed
Compare
Thank you very much for preparing this! I will take a look at the error in a couple of days. |
2ae0bed
to
976d09d
Compare
Thanks, just to provide a bit more context, that is coming from the bridge setup part of bootstrapping that I wrote. It is from the step where we provide the address of the registrar contract to set the token factory contract that deploys the bridge deployed solidity token smart contracts. It happens when we are decoding the ABI data from the registrar contract. This step succeeds in all of the fvm tests, but doesn't in the evm tests, so it sounds to me like maybe there is something in the config for the EVM tests that differs from the FVM tests that makes this not work in this context. |
What I found is that there is an underlying error: "abi: attempting to unmarshal an empty string while arguments are expected" at this location: https://github.com/onflow/flow-evm-bridge/blob/b32c787631c9c84c548b2e414d87b49fa32b12d8/cadence/transactions/bridge/admin/evm/set_registrar.cdc#L44 which means the |
Interesting. @sisyphusSmiling Are you able to take a look? Do you know why |
Looks like They will need to be changed to be more like the |
@janezpodhostnik Just to clarify, how would starting with a different storage affect the bridge bootstrapping? And are you saying that you'll be able to help update them, or I should do that? |
I am trying to update the tests, but I'm unfamiliar with these tests and its proving difficult. I will let you know how it goes. |
@joshuahannan I tried fixing the tests, but it would take me more time than I currently have. I suggest adding a disable option for bootstrapping the bridge, and disable the bridge in these specific tests (evm_test.go). |
okay, I'll do that. Thanks for taking a look! |
976d09d
to
30cb755
Compare
@janezpodhostnik I just pushed the changes and everything is passing now. Can you review? Also, since I added the bootstrap option to setup the bridge and it doesn't happen by default any more, where do we add that to use that for the bootstrapping that is used for the emulator? |
Adds the bridge standup script to fvm bootstrapping so that the bridge can be available in the emulator and other testing environments by default