diff --git a/Framework/ArgsUniform/Assigner.cs b/Framework/ArgsUniform/Assigner.cs index 4db7a08c..483f02e7 100644 --- a/Framework/ArgsUniform/Assigner.cs +++ b/Framework/ArgsUniform/Assigner.cs @@ -95,7 +95,10 @@ namespace ArgsUniform } else { - if (uniformProperty.PropertyType == typeof(string) || uniformProperty.PropertyType == typeof(int)) + if ( + uniformProperty.PropertyType == typeof(string) || + uniformProperty.PropertyType == typeof(int) || + uniformProperty.PropertyType == typeof(decimal)) { uniformProperty.SetValue(result, Convert.ChangeType(value, uniformProperty.PropertyType)); return true; diff --git a/Tools/BiblioTech/Configuration.cs b/Tools/BiblioTech/Configuration.cs index a7baff45..09f0f044 100644 --- a/Tools/BiblioTech/Configuration.cs +++ b/Tools/BiblioTech/Configuration.cs @@ -30,7 +30,7 @@ namespace BiblioTech public int RewardApiPort { get; set; } = 31080; [Uniform("send-eth", "se", "SENDETH", true, "Amount of Eth send by the mint command.")] - public int SendEth { get; set; } = 10; + public decimal SendEth { get; set; } = 10.0m; [Uniform("mint-tt", "mt", "MINTTT", true, "Amount of TSTWEI minted by the mint command.")] public BigInteger MintTT { get; set; } = 1073741824; diff --git a/Tools/BiblioTech/Program.cs b/Tools/BiblioTech/Program.cs index f0d63758..28662388 100644 --- a/Tools/BiblioTech/Program.cs +++ b/Tools/BiblioTech/Program.cs @@ -4,10 +4,7 @@ using BiblioTech.Commands; using BiblioTech.Rewards; using Discord; using Discord.WebSocket; -using DiscordRewards; using Logging; -using Nethereum.Model; -using Newtonsoft.Json; namespace BiblioTech {