mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-07 07:53:05 +00:00
Converts SendEth argument for bot into decimal type
This commit is contained in:
parent
28fcb32527
commit
bee5d23df4
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user