Skip to content

Commit d04c0cc

Browse files
committed
Update EmbeddedWallet.Misc.cs
1 parent 88a1a05 commit d04c0cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Thirdweb/Thirdweb.Wallets/InAppWallet/EmbeddedWallet/EmbeddedWallet.Misc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public async Task SignOutAsync()
5454
}
5555

5656
var privateKey = account.PrivateKey;
57-
if (privateKey.Length == 62)
57+
if (privateKey.Length == 64)
5858
{
59-
privateKey = "00" + privateKey;
59+
privateKey = privateKey.Insert(2, "00");
6060
}
6161
var utf8WithoutBom = new System.Text.UTF8Encoding(encoderShouldEmitUTF8Identifier: true);
6262
var privateKeyBytes = utf8WithoutBom.GetBytes(privateKey);

0 commit comments

Comments
 (0)