From 19a8adbbdeb30f877ad0ed20405bcf1c155c1101 Mon Sep 17 00:00:00 2001 From: 0xFirekeeper <0xFirekeeper@gmail.com> Date: Sat, 13 Apr 2024 01:01:22 +0300 Subject: [PATCH] Update Thirdweb.Transactions.Tests.cs --- Thirdweb.Tests/Thirdweb.Transactions.Tests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Thirdweb.Tests/Thirdweb.Transactions.Tests.cs b/Thirdweb.Tests/Thirdweb.Transactions.Tests.cs index bbe6b96..e1a28c9 100644 --- a/Thirdweb.Tests/Thirdweb.Transactions.Tests.cs +++ b/Thirdweb.Tests/Thirdweb.Transactions.Tests.cs @@ -135,6 +135,16 @@ public async Task EstimateTotalCosts_WithoutSetting_CalculatesCostsCorrectly() Assert.NotEqual(BigInteger.Zero, costs.wei); } + [Fact] + public async Task EstimateTotalCosts_WithoutValue_CalculatesCostsCorrectly() + { + var transaction = await CreateSampleTransaction(); + + var costs = await ThirdwebTransaction.EstimateTotalCosts(transaction); + + Assert.NotEqual(BigInteger.Zero, costs.wei); + } + [Fact] public async Task EstimateGasCosts_CalculatesCostsCorrectly() {