Skip to content

Commit

Permalink
Update Thirdweb.SmartWallet.Tests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Jun 18, 2024
1 parent 3717d23 commit 72e141f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Thirdweb.Tests/Thirdweb.SmartWallet.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ public async Task Initialization_Success()
Assert.NotNull(await account.GetAddress());
}

[Fact]
public async Task Initialization_WithoutFactory_Success()
{
var client = ThirdwebClient.Create(secretKey: _secretKey);
var privateKeyAccount = await PrivateKeyWallet.Generate(client);
var smartAccount = await SmartWallet.Create(client, personalWallet: privateKeyAccount, chainId: 421614);
Assert.NotNull(await smartAccount.GetAddress());
}

[Fact]
public async Task Initialization_Fail()
{
Expand Down

0 comments on commit 72e141f

Please sign in to comment.