-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat: add creation of onchain notes #587
Conversation
Is this ready for review? |
yea, I was waiting for CI to pass 😅. Also I mentioned on discord an issue I've had when testing this change on miden client. I'm getting an account hash mismatch error when I try to run a mint transaction against an onchain faucet. Perhaps I'm missing something else here in miden-base.
more details here |
…gaBA-add-creation-of-onchain-notes
Is the on-chain faucet "new" (i.e., was created not during genesis but by creating a new account). If so, the issue may be related to #529 (comment). |
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.
Looks good! Thank you!
Not related to this PR: account_type
and account_storage_type
seems too similar. Maybe we should rename account_storage_type
into account_storage_mode
.
auth_scheme: AuthScheme, | ||
account_storage_type: AccountStorageType, |
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.
minor nit: I would probably move account_storage_type
up to be before auth_scheme
.
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.
changed!
It is indeed! I'm now trying to replicate the changes on that PR and see if it gets fixed UPDATE: tried cherry picking the first two commits from that PR (assuming that's where the fix was and later on refactors took place) and I'm still getting the same error |
Updates
create_basic_fungible_faucet
andcreate_basic_wallet
to take an extra parameter that determines the account storage type (i.e. whether the account is stored onchain or offchain).This is needed to create onchain stored accounts on miden client.
related to #171 from miden-client