-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix transfer claim #214
base: compatible
Are you sure you want to change the base?
Fix transfer claim #214
Conversation
I'm not really sure this PR is worth reviewing for issues or bugs, or mistakes, or merging, because the design is outdated. |
@@ -209,6 +209,11 @@ module Process_transfer = struct | |||
(* We give it permission *) | |||
; implicit_account_creation_fee = | |||
Boolean.false_ (* Custom token account, can't be true *) | |||
; events = |
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.
You have actions already?
let before = List.map ~f:(value_to_actions TR.typ) before in | ||
let after = List.map ~f:(value_to_actions TR.typ) after in | ||
let%bind trans1 = | ||
Action_state_extension.prove ~dummy:is_new ~source:pointer before | ||
Action_state_extension.prove ~dummy:is_new | ||
~source:Zkapp_account.Actions.empty_state_element before |
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.
pretty sure this is somewhat wrong, somewhat right, but it isn't worth it I think
can't you mock it without the changes if you set the permissions to Either? |
Fixes 2 issues:
This PR requires the change to the inner account VK, and forced state root update in outer account.