Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Thirdweb.Tests/Thirdweb.Utils/Thirdweb.Utils.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -679,14 +679,14 @@ public async Task IsEip155Enforced_ReturnsFalse_WhenChainIs1()
Assert.False(isEip155Enforced);
}

[Fact(Timeout = 120000)]
public async Task IsEip155Enforced_ReturnsTrue_WhenChainIs842()
{
var chainId = new BigInteger(842);
var isEip155Enforced = await Utils.IsEip155Enforced(this.Client, chainId);

Assert.True(isEip155Enforced);
}
// [Fact(Timeout = 120000)]
// public async Task IsEip155Enforced_ReturnsTrue_WhenChainIs842()
// {
// var chainId = new BigInteger(842);
// var isEip155Enforced = await Utils.IsEip155Enforced(this.Client, chainId);

// Assert.True(isEip155Enforced);
// }

[Fact(Timeout = 120000)]
public void ReconstructHttpClient_WithHeaders()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public async Task SignOutAsync()
}

var privateKey = account.PrivateKey;
if (privateKey.Length == 64)
{
privateKey = privateKey.Insert(2, "00");
}
var utf8WithoutBom = new System.Text.UTF8Encoding(encoderShouldEmitUTF8Identifier: true);
var privateKeyBytes = utf8WithoutBom.GetBytes(privateKey);

Expand Down
Loading