Skip to content

Commit

Permalink
Merge pull request #23 from RemarkableTools/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
axenteoctavian authored Apr 6, 2023
2 parents f7da013 + ae4ecf6 commit 48492d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Mx.NET.SDK/Domain/TransactionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Mx.NET.SDK.Core.Domain.SmartContracts;
using static Mx.NET.SDK.Core.Domain.Constants.Constants;
using Mx.NET.SDK.Provider.Dtos.API.Transactions;
using System.Globalization;

namespace Mx.NET.SDK.Domain
{
Expand Down Expand Up @@ -135,7 +136,7 @@ public ESDTAmount GetEstimatedFee()

var remainingGas = GasLimit.Value - dataGas;
var gasPriceModifier = networkConfig.GasPriceModifier;
var modifiedGasPrice = gasPrice * double.Parse(gasPriceModifier);
var modifiedGasPrice = gasPrice * double.Parse(gasPriceModifier, CultureInfo.InvariantCulture);
var surplusFee = remainingGas * modifiedGasPrice;

return ESDTAmount.From($"{transactionGas + surplusFee}");
Expand Down
2 changes: 1 addition & 1 deletion src/Mx.NET.SDK/Mx.NET.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<RepositoryUrl>https://github.com/RemarkableTools/Mx.NET.SDK</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<Company>Remarkable Tools</Company>
<Version>1.0.15</Version>
<Version>1.0.16</Version>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Title>RemarkableTools.Mx</Title>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down

0 comments on commit 48492d9

Please sign in to comment.