8000 Add `load_function_without_types` to VM session and loader by banool · Pull Request #990 · move-language/move · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Add load_function_without_types to VM session and loader #990

Closed

Conversation

banool
Copy link
Contributor
@banool banool commented Mar 17, 2023

Motivation

For Aptos, in order to expose whether a function is a view function in the API-based ABI today, we need to be able to load function metadata through the Aptos VM. The existing function exposed by the Session for this, load_function, loads information about arguments, generic types, and return types, which is more than is necessary for this use case.

To that end I've exposed a version of this function that loads only the module and function, without this additional type information.

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

Not sure. As far as I can tell, load_function does not have unit tests either.

@banool banool changed the base branch from main to aptos-main March 17, 2023 22:41
@banool banool changed the title Add load_function_without_types to session and loader Add load_function_without_types to session and loader Mar 17, 2023
@banool banool force-pushed the banool/load_function_no_types branch from 09d8c1c to 659b43d 8000 Compare March 17, 2023 22:52
@banool banool force-pushed the banool/load_function_no_types branch from 659b43d to 57b6a6e Compare March 17, 2023 22:54
@banool banool changed the title Add load_function_without_types to session and loader Add load_function_without_types to VM session and loader Mar 17, 2023
@banool banool marked this pull request as ready for review March 17, 2023 22:55
@banool
Copy link
Contributor Author
banool commented Mar 18, 2023

I'll re-open this in aptos-core soon once we have the sync working.

@banool banool closed this Mar 18, 2023
@banool banool deleted the banool/load_function_no_types branch March 18, 2023 18:19
@banool
Copy link
Contributor Author
banool commented Mar 18, 2023

See aptos-labs/aptos-core#7275.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0