-
Notifications
You must be signed in to change notification settings - Fork 130
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
base: starknet-foundry
Are you sure you want to change the base?
Conversation
Co-authored-by: root <root@Hp-pavilion>
Co-authored-by: Gianfranco99 <gianfranco.benvenuto99gmail.com>
… [skip ci] Co-authored-by: metalboyrick <[email protected]>
This reverts commit d229d47.
This reverts commit f95a0fa.
Co-authored-by: Quantum3Labs <[email protected]>
…old-Stark#334) Co-authored-by: iossocket <[email protected]>
packages/snfoundry/.env.example
Outdated
@@ -1,8 +1,8 @@ | |||
# ## Devnet |
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.
is it necessary to change this flie?
PR ready for review @jrcarlos2000 @Nadai2010 |
Co-authored-by: GianMarco <[email protected]>
Hi @847850277 , your PR should point to |
# Conflicts: # packages/snfoundry/.env.example # packages/snfoundry/Scarb.toml # packages/snfoundry/contracts/src/lib.cairo # packages/snfoundry/package.json # packages/snfoundry/scripts-ts/helpers/command.ts # packages/snfoundry/scripts/Scarb.lock # packages/snfoundry/scripts/Scarb.toml # packages/snfoundry/scripts/src/lib.cairo # packages/snfoundry/src/test/TestContract.cairo # yarn.lock
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.
Thank you very much for the contribution, good job, there are several details to fix before the merged to the sn-foundry branch.
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.
This file should not change
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.
update.
packages/snfoundry/Scarb.toml
Outdated
casm = true | ||
|
||
[workspace] | ||
members = ["scripts"] |
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.
I think you should keep the sricpt to point to the new scarb.
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.
update.
@@ -3,7 +3,7 @@ | |||
"version": "0.0.1", | |||
"scripts": { | |||
"chain": "starknet-devnet --seed 0 --account-class cairo1", | |||
"deploy": "ts-node scripts-ts/helpers/deploy-wrapper.ts", | |||
"deploy": "ts-node ./scripts-ts/helpers/command.ts deploy", |
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.
If the main idea is to keep it in a branch snfoundry, wouldn't it be better to add it as a different deploy or adjust as you are doing
What do you think @jrcarlos2000 ?
``` | ||
|
||
|
||
## current may Troubled problem |
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.
This is one of the main problems when integrating in the main, we must have it under control, once it is solved we could revaluate
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.
yes! It must be resolved, otherwise using cairo's dacare&&deploy in already declared scenarios will block it.
but sncast_std seem not support return class_hash when declared exist.
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
u can check out and go to folder
packages/test_2/scripts
executesncast --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
Comments (optional)