Skip to content

Commit 811e7d5

Browse files
authored
Merge pull request #1246 from opentensor/hotfix-wrong-parse-account-id
Hotfix wrong parse account function
2 parents ffe3cc0 + fb4da1c commit 811e7d5

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)