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

[ISSUES#394]Update Snfoundry package to support starknet foundry script #426

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

847850277
Copy link

@847850277 847850277 commented Jan 21, 2025

PR description

Currently, we can use yarn deploy&&yarn deploy -- network sepolia.
but there has some problem need to solve.
the problem is cairo script ``declare` can not get class_hash when the contract has been already declared.
it will return

{
  "version": 1,
  "transactions": {
    "transactions": {
      "196d86c22d6bd216c4c0497de3f9aa008a298f36478e25b7225a84ddc84c6643": {
        "name": "declare",
        "output": {
          "type": "ErrorResponse",
          "message": "Transaction already exists"
        },
        "status": "Error",
        "timestamp": 1737548319,
        "misc": null
      }
    }
  }
}

u can check out and go to folder packages/test_2/scripts execute
sncast --account account-1 script run my_script --url https://starknet-sepolia.public.blastapi.io/rpc/v0_7 recurrent it.

or u can read packages/snfoundry/scripts/readme.md.

Fixes #394

Types of change

  • Feature
  • Bug
  • Enhancement

Comments (optional)

@@ -1,8 +1,8 @@
# ## Devnet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it necessary to change this flie?

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.

[FEAT] Update Snfoundry package to support starknet foundry script
2 participants