You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, we should be able to define a trait for CPI and allow any program to implement it, so that we can have cleaner, typed APIs instead of using the raw solana_program::program::invoke apis.
The text was updated successfully, but these errors were encountered:
Currently, a CPI interface is implemented manually. See the "opaque relay" here https://github.com/project-serum/anchor/blob/master/examples/lockup/programs/lockup/src/lib.rs#L232.
Instead, we should be able to define a trait for CPI and allow any program to implement it, so that we can have cleaner, typed APIs instead of using the raw
solana_program::program::invoke
apis.The text was updated successfully, but these errors were encountered: