Skip to content

Commit fb4da1c

Browse files
committed
fix wrong parse function
1 parent ffe3cc0 commit fb4da1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/precompiles/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub fn get_pubkey(data: &[u8]) -> Result<(AccountId32, vec::Vec<u8>), Precompile
146146

147147
Ok((
148148
pubkey.into(),
149-
data.get(4..)
149+
data.get(32..)
150150
.map_or_else(vec::Vec::new, |slice| slice.to_vec()),
151151
))
152152
}

0 commit comments

Comments
 (0)