Skip to content

Commit 19a8adb

Browse files
committed
Update Thirdweb.Transactions.Tests.cs
1 parent 130dfbd commit 19a8adb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Thirdweb.Tests/Thirdweb.Transactions.Tests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ public async Task EstimateTotalCosts_WithoutSetting_CalculatesCostsCorrectly()
135135
Assert.NotEqual(BigInteger.Zero, costs.wei);
136136
}
137137

138+
[Fact]
139+
public async Task EstimateTotalCosts_WithoutValue_CalculatesCostsCorrectly()
140+
{
141+
var transaction = await CreateSampleTransaction();
142+
143+
var costs = await ThirdwebTransaction.EstimateTotalCosts(transaction);
144+
145+
Assert.NotEqual(BigInteger.Zero, costs.wei);
146+
}
147+
138148
[Fact]
139149
public async Task EstimateGasCosts_CalculatesCostsCorrectly()
140150
{

0 commit comments

Comments
 (0)