Cadence 1.0 Multi-Staging#1582
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
Just tried to run this on find repo since I have 45 things to stage there and i got |
Awesome, thank you so much for doing this. Looks like an easy fix, glad we could catch it before it became an issue 🙏 |
|
this is the output now should we sort and unique the dependent contracts maybe? |
Yeah 💯 (I was also planning not to stage contracts if the staged code hasn't changed, just have not added yet) |
|
It did work though, but it stages each contract in a single transaction. Each tx takes about 300 gas so you should be able to do loads of them in one go if you want to. The command took 5 minutes to run for me :p |
Awesome!! Super appreciative that you could run this, it really helps because my manual + unit tests can only go so far... lots of edge cases in this one. Yeah, doing this in separate transactions is somewhat intentional. I didn't want to run into any headaches related to computation limits, so it seemed more reliable to just stick to individual TX than try to estimate computation & potentially introduce bugs (and since this is what I know waiting 5 minutes for the command to run isn't a great experience, but hopefully I can really shave that down by not sending unnecessary TX. |
|
Fair enough. I dont expect to run it that many times |
Closes #1559
Description
Adds support for staging multiple contracts at once.
Approach:
For contributor use:
masterbranchFiles changedin the Github PR explorer