Solana(Cross-Program Invocation): borrowed value does not live long enough
I am new to Rust.
I am writing a Solana contract and encountered this problem during a CPI (Cross-Program Invocation) call.
I don’t completely understand lifetimes.
I know this is a rust lifetimes issue, but I don’t know how to write the code.