parent
1a77486f8e
commit
ef0580bd3d
|
@ -2304,7 +2304,7 @@ dependencies = [
|
||||||
"serde 1.0.91 (registry+https://github.com/rust-lang/crates.io-index)",
|
"serde 1.0.91 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"solana-logger 0.15.0",
|
"solana-logger 0.15.0",
|
||||||
"solana-sdk 0.15.0",
|
"solana-sdk 0.15.0",
|
||||||
"solana_rbpf 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"solana_rbpf 0.1.11",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2809,6 +2809,20 @@ dependencies = [
|
||||||
"url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "solana_rbpf"
|
||||||
|
version = "0.1.11"
|
||||||
|
dependencies = [
|
||||||
|
"byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"combine 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"elfkit 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"hash32 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"libc 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "solana_rbpf"
|
name = "solana_rbpf"
|
||||||
version = "0.1.11"
|
version = "0.1.11"
|
||||||
|
|
|
@ -181,8 +181,7 @@ pub fn deserialize<'a>(
|
||||||
|
|
||||||
let mut ka: [Option<SolKeyedAccount>; MAX_ACCOUNTS] =
|
let mut ka: [Option<SolKeyedAccount>; MAX_ACCOUNTS] =
|
||||||
[None, None, None, None, None, None, None, None, None, None];
|
[None, None, None, None, None, None, None, None, None, None];
|
||||||
let iter = 0..num_ka; // This weirdness due to #issue $#4271
|
for i in 0..num_ka {
|
||||||
for (i, _) in iter.enumerate() {
|
|
||||||
let is_signer = unsafe {
|
let is_signer = unsafe {
|
||||||
#[allow(clippy::cast_ptr_alignment)]
|
#[allow(clippy::cast_ptr_alignment)]
|
||||||
let is_signer_ptr: *const u64 = input.add(offset) as *const u64;
|
let is_signer_ptr: *const u64 = input.add(offset) as *const u64;
|
||||||
|
@ -194,10 +193,6 @@ pub fn deserialize<'a>(
|
||||||
};
|
};
|
||||||
offset += size_of::<u64>();
|
offset += size_of::<u64>();
|
||||||
|
|
||||||
// let key_slice = unsafe { from_raw_parts(input.add(offset), SIZE_PUBKEY) };
|
|
||||||
// let key = SolPubkey {
|
|
||||||
// key: key_slice.try_into().unwrap(),
|
|
||||||
// };
|
|
||||||
let key = unsafe {
|
let key = unsafe {
|
||||||
SolPubkey {
|
SolPubkey {
|
||||||
key: &*(input.add(offset) as *mut [u8; SIZE_PUBKEY]),
|
key: &*(input.add(offset) as *mut [u8; SIZE_PUBKEY]),
|
||||||
|
|
Loading…
Reference in New Issue