Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Generate borrowed parameters for functions #34

Open
gabrielfior opened this issue Jul 15, 2022 · 0 comments
Open

Generate borrowed parameters for functions #34

gabrielfior opened this issue Jul 15, 2022 · 0 comments

Comments

@gabrielfior
Copy link

I'm trying to generate a function like the following in Rust:

use my_program::{MyImportedClass, AccountInfo, ProgramResult};

pub fn process_instruction(
    program_id: &MyImportedClass,
    accounts: &[AccountInfo]
) -> ProgramResult {
/* pass */

Is there a way to currently generate this? Many thanks

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

No branches or pull requests

1 participant