-
Notifications
You must be signed in to change notification settings - Fork 131
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
Cannot identify the number of signers in adapter layer #209
Comments
I sort of anticipated issues like this, but not this issue exactly. I just added a new API in #197. You should be able to use the new
So for this particular problem, you should be able to make a session, call load function, and then find out how to manage signer arguments as needed Keep in mind the VM no longer verifies the signature of script functions at all, so the signers can appear in any position. You can use
|
Thank you for such detailed reply. Close the issue now. |
@tnowacki is there a way to provide a similar load_script function so that |
@tnowacki Could there be a similar load_function for script to read the signature of the |
🚀 Feature Request
Motivation
When trying to use the latest move, come across a problem.
We automatically add signer to the script function call if we find the function requires signers (here
move/language/move-vm/runtime/src/runtime.rs
Line 280 in c113ea1
With the new move revision (https://github.com/diem/move/pull/175/files), to use the new execute_entry_function, it only take args, which could contains both signer and txn args. we need to determine the number of signers to add to args at adapter layer now. However, some script function requires one signer and some doesn’t (eg: create_account). since loader is not exposed in the adapter’s session, I currently don’t find a way to calculate the number of signer in script or script function from adapter. Any suggestions or workarounds?
Pitch
Need to expose either the loader to adapter layers or functions in session to help determine the number of signers in the the script function or script
The text was updated successfully, but these errors were encountered: