Converts SendEth argument for bot into decimal type

This commit is contained in:
ThatBen 2025-07-03 08:46:46 +02:00
parent 28fcb32527
commit bee5d23df4
No known key found for this signature in database
GPG Key ID: E020A7DDCD52E1AB
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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
{