-
Notifications
You must be signed in to change notification settings - Fork 34
Add examples/counter-contract
and expose incr_nonce
in the Miden SDK
#492
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
base: i431-acc-storage-high
Are you sure you want to change the base?
Add examples/counter-contract
and expose incr_nonce
in the Miden SDK
#492
Conversation
Call it in the `example/counter-contract`
@partylikeits1983 Please check if I got everything right. I cannot request a review from you. @bobbinth, please add @partylikeits1983 to this repo. |
@partylikeits1983 I put only the build instructions in the README file. We should probably link a relevant part of your tutorial. What do you think? |
@greenhat I’m trying to build the
Resulting error:
I noticed the midenc build --debug --verbose --target rollup What additional flags or steps should I include when running |
@partylikeits1983 Thanks for checking this out! The |
@partylikeits1983 Done. Please build |
This is awesome, was able to install I think the next step after this is merged would be to test this end to end, by deploying the rust counter contract to testnet and executing transactions against the account. I think it might be useful to open a PR on This is how I've been initializing a counter contract written in masm: let (counter_contract, counter_seed) = AccountBuilder::new(seed)
.anchor((&anchor_block).try_into().unwrap())
.account_type(AccountType::RegularAccountImmutableCode)
.storage_mode(AccountStorageMode::Public)
.with_component(counter_component.clone())
.build()
.unwrap(); |
Sounds great!
I would start with an issue. My plan was to add the |
For this to work, we're still missing one piece: the proper transaction kernel library linking. Currently, we are linking against the stubbed-out transaction kernel library We have an issue for that - #307 |
Close #482
Close #491
This PR is stacked on the #436 and should be merged after it
This PR adds:
examples/counter-contract
andcounter_contract
integration test;incr_nonce
in the Miden SDK;cargo-miden
projects.