Skip to content

Commit 48492d9

Browse files
Merge pull request #23 from RemarkableTools/dev
Dev
2 parents f7da013 + ae4ecf6 commit 48492d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Mx.NET.SDK/Domain/TransactionRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Mx.NET.SDK.Core.Domain.SmartContracts;
1111
using static Mx.NET.SDK.Core.Domain.Constants.Constants;
1212
using Mx.NET.SDK.Provider.Dtos.API.Transactions;
13+
using System.Globalization;
1314

1415
namespace Mx.NET.SDK.Domain
1516
{
@@ -135,7 +136,7 @@ public ESDTAmount GetEstimatedFee()
135136

136137
var remainingGas = GasLimit.Value - dataGas;
137138
var gasPriceModifier = networkConfig.GasPriceModifier;
138-
var modifiedGasPrice = gasPrice * double.Parse(gasPriceModifier);
139+
var modifiedGasPrice = gasPrice * double.Parse(gasPriceModifier, CultureInfo.InvariantCulture);
139140
var surplusFee = remainingGas * modifiedGasPrice;
140141

141142
return ESDTAmount.From($"{transactionGas + surplusFee}");

src/Mx.NET.SDK/Mx.NET.SDK.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<RepositoryUrl>https://github.com/RemarkableTools/Mx.NET.SDK</RepositoryUrl>
1212
<RepositoryType>GitHub</RepositoryType>
1313
<Company>Remarkable Tools</Company>
14-
<Version>1.0.15</Version>
14+
<Version>1.0.16</Version>
1515
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1616
<Title>RemarkableTools.Mx</Title>
1717
<PackageReadmeFile>README.md</PackageReadmeFile>

0 commit comments

Comments
 (0)