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.
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.