Translate data length as mutable (#13956)

This commit is contained in:
Jack May 2020-12-03 21:47:22 -08:00 committed by GitHub
parent 5dceddd21d
commit f1fd999bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ impl<'a> SyscallInvokeSigned<'a> for SyscallInvokeSignedRust<'a> {
)?;
let translated = translate(
memory_mapping,
AccessType::Load,
AccessType::Store,
unsafe { (account_info.data.as_ptr() as *const u64).offset(1) as u64 },
8,
)? as *mut u64;