I am using BigHexIntegers from a c# library called Nethereum. I need to use BigHexIntegers to add Ether to a transaction and set gas. I run into an issue however when I try to use these variable types as it recognises it is a variable inherited from Nethereum but it then tells me i need to add the assembly: System.Runtime.Numerics. I looked for this assembly in references but couldn't find it (except for System.Numerics which was already added). I found the package on Nuget and it was installed yet it still won't work as a reference.
Could it be that it is an entirely different problem all together?
Here is some of my code:
protected async void ethpobButton_Click(object sender, EventArgs e)
{
var gas = new HexBigInteger("60000");
var value = new HexBigInteger(ethAmountTextBox.Text);
var proofOfBurn = Reputation.GetFunction("burnCoins");
var result = await proofOfBurn.SendTransactionAsync(ethAddrTextBox.Text, gas ,value);
}
and
using System;
using NBitcoin;
using QBitNinja.Client;
using Nethereum.Hex.HexTypes;
Error Message:
Compiler Error Message: CS0012: The type 'BigInteger' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.