Skip to content

Commit

Permalink
fix wrong parse function
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Feb 6, 2025
1 parent ffe3cc0 commit fb4da1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub fn get_pubkey(data: &[u8]) -> Result<(AccountId32, vec::Vec<u8>), Precompile

Ok((
pubkey.into(),
data.get(4..)
data.get(32..)
.map_or_else(vec::Vec::new, |slice| slice.to_vec()),
))
}
Expand Down

0 comments on commit fb4da1c

Please sign in to comment.