-
Notifications
You must be signed in to change notification settings - Fork 359
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
Bump foundry to 0.28.0 #1112
Bump foundry to 0.28.0 #1112
Conversation
@@ -120,6 +120,9 @@ A module containing utilities that simplify declaring and deploying contracts us | |||
|
|||
Declares a contract with a `snforge` `declare` call and unwraps the result. | |||
|
|||
NOTE: If the contract is already declared, this function won't panic but will instead | |||
return the existing class. | |||
|
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.
Great news!
@@ -50,7 +52,7 @@ fn setup(key_pair: StarkKeyPair) -> ComponentState { | |||
fn setup_dispatcher( | |||
key_pair: StarkKeyPair, data: SignedTransactionData | |||
) -> (AccountABIDispatcher, felt252) { | |||
let contract_class = declare("DualCaseAccountMock").unwrap_syscall(); | |||
let contract_class = *declare("DualCaseAccountMock").unwrap_syscall().contract_class(); |
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.
We could use utils::declare_class
here, that would make the code a bit more concise and we wouldn't have to import DeclareResultTrait
Since the release has some issues with test collection, let's wait for the fix before updating and merging this PR. |
Co-authored-by: immrsd <[email protected]>
Closing in favor of #1137 |
Fixes #1111
PR Checklist