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
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
The loading program and executable accounts are done independently and may duplicate account cloning if an executable account is also passed as a parameter. This is due to an old assumption that there was no overlap between executable accounts and parameter accounts. With cross-program invocations, executable accounts may be passed as parameters and exist in both the executable and program accounts as separate cloned accounts.
This duplicate account cloning also occurs in the cross-program invocation call flow since it uses the same data types as typical transaction processing.
Proposed Solution
Use Rc and RefCell to share a single copy and eliminate the extra cloning. Once the new data types are used in the typical transition processing call flow update cross-program invocations and remove the unnecessary clone there too.
The text was updated successfully, but these errors were encountered:
Problem
The loading program and executable accounts are done independently and may duplicate account cloning if an executable account is also passed as a parameter. This is due to an old assumption that there was no overlap between executable accounts and parameter accounts. With cross-program invocations, executable accounts may be passed as parameters and exist in both the executable and program accounts as separate cloned accounts.
This duplicate account cloning also occurs in the cross-program invocation call flow since it uses the same data types as typical transaction processing.
Proposed Solution
Use Rc and RefCell to share a single copy and eliminate the extra cloning. Once the new data types are used in the typical transition processing call flow update cross-program invocations and remove the unnecessary clone there too.
The text was updated successfully, but these errors were encountered: