Closed julio4 closed 1 year ago
Hi @julio4, great work. We detected some issues with dependency versions of cairo-lang that, as you see, make our tests to fail. If you merge develop into this branch it should be fixed.
Hey @julio4! Amazing. Thank you for cleaning this up a bit. There are many more interesting contracts that should be preserved and cleaned up in the examples folder.
tests/behaviour/contracts/cairoStubs/proxy.sol
, a cool example of proxies.@JorikSchellekens
Maybe I can open a separate issue to clean and add more interesting example contracts ?
Additionally, all tests in the example folder are tested and must compile. If we add unsupported cases, should we move them to a dedicated unsupported
folder, leave them as comments, or perhaps disable testing for contracts in this example folder? Let me know your thoughts.
Hey , @julio4 thank you for this PR š. But unfortunately I have to close this PR, since I have added some changes in the PR: https://github.com/NethermindEth/warp/pull/1002 inspired from this PR to the cairo-1.0
branch , and eventually cairo-1.0
branch will be merged to the develop
branch .
If you have some questions then you ask here. Are you okay with closing this PR?
Anyway thanks for your contribution ! š Looking forward to see more contributions towards this repo from you š
@rjnrohit Ok I understand.
Can you please share what I could have improved so I can make a better contribution next time ?
@rjnrohit Ok I understand.
Can you please share what I could have improved so I can make a better contribution next time ?
What you have done is brilliant ! I just needed this changes quickly added to cairo-1.0 branch with cairo1 compatibility. So, I followed some of your idea.
For the contribution specifically, as long as you're following this guide :https://github.com/NethermindEth/warp/blob/develop/CONTRIBUTING.md
, it should be good for us.
We're eagerly seeking external peoples contributions, so don't hesitate to open a PR. It'll anyway makes WARP
better.
@rjnrohit Ok I understand. Can you please share what I could have improved so I can make a better contribution next time ?
What you have done is brilliant ! I just needed this changes quickly added to cairo-1.0 branch with cairo1 compatibility. So, I followed some of your idea.
For the contribution specifically, as long as you're following this guide :
https://github.com/NethermindEth/warp/blob/develop/CONTRIBUTING.md
, it should be good for us.We're eagerly seeking external peoples contributions, so don't hesitate to open a PR. It'll anyway makes
WARP
better.
Understood! Glad I could help, and Iām looking forward to contribute again!
Fixes #836
What was wrong?
Currently, most of the contracts inside
exampleContracts
are used for tests. This folder should contain only useful examples for the user.How was it fixed?
exampleContract
folder to a new foldertests/compilation
test:examples
totest:compilation
tests/compilation
are defined intests/testing.ts
(Default: 'Success')exampleContracts
must successfully compile wit both Warp and Starknet-compile. (Tested duringtests:compilation
)For contributors
For an important feature, you can write a simple solidity contract in
exampleContract
to show the usage of this feature.For all specific test cases, you can add any contracts under
tests/compilation
and specify the result expectations in theexpectedResults
map (tests/testing.ts
).