From fdbfc23b0c240f549f0683295df1b9f0a7ce0ab0 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sat, 17 Sep 2022 08:50:08 +0000 Subject: [PATCH] test: fix random key padding --- --- a/tests/src/util/helpers.ts +++ b/tests/src/util/helpers.ts @@ -1855,7 +1855,7 @@ let accountSeed = 10000; export function generateKeyringPair(keyring: Keyring) { - const privateKey = `0xDEADBEEF${(Date.now() + (accountSeed++)).toString(16)}`.padStart(64, '0'); + const privateKey = `0xDEADBEEF${(Date.now() + (accountSeed++)).toString(16).padStart(64 - 8, '0')}`; return keyring.addFromUri(privateKey); } -- gitstuff