Skip to content
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

Closed

Conversation

ericnordelo
Copy link
Member

@ericnordelo ericnordelo commented Aug 22, 2024

Fixes #1111

PR Checklist

  • Tests
  • Documentation
  • Added entry to CHANGELOG.md
  • Tried the feature on a public network

@@ -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.

Copy link
Collaborator

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();
Copy link
Collaborator

@immrsd immrsd Aug 26, 2024

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

packages/token/src/tests/erc1155/test_erc1155.cairo Outdated Show resolved Hide resolved
@ericnordelo
Copy link
Member Author

Since the release has some issues with test collection, let's wait for the fix before updating and merging this PR.

@ericnordelo
Copy link
Member Author

Closing in favor of #1137

@ericnordelo ericnordelo closed this Sep 9, 2024
@ericnordelo ericnordelo deleted the feat/bump-sn-foundry-#1111 branch September 9, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update snforge to 0.28.0
2 participants