Skip to content

Commit

Permalink
Merge pull request #1246 from opentensor/hotfix-wrong-parse-account-id
Browse files Browse the repository at this point in the history
Hotfix wrong parse account function
  • Loading branch information
sam0x17 authored Feb 6, 2025
2 parents ffe3cc0 + fb4da1c commit 811e7d5
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 811e7d5

Please sign in to comment.