public async Task ValidateConnectingFund_decimalMismatch() { //deploy a fund instance, but do no tests, that's something for the fund test suite Fund _FundContract; _FundContract = await Fund.New(_contract.ContractAddress, RpcClient); //make new price index but with other decimals // Deploy our test contract Meadow.Core.EthTypes.UInt256 fiatDecimals2 = 5; PriceIndex _contract2 = await PriceIndex.New(initPrice, "meadowInit", 4, (byte)fiatDecimals2, "BTC", "USD", RpcClient); //connect fund var txParams = new TransactionParams { From = Accounts[0] }; // admin await _contract2.connectFund(_FundContract.ContractAddress).SendTransaction(txParams); }
// Method is ran before each test (all tests are ran in isolation). // This is an appropriate area to do contract deployment. protected override async Task BeforeEach() { // Deploy our test contract _contract = await PriceIndex.New(initPrice, "meadowInit", 4, (byte)fiatDecimals, "BTC", "USD", RpcClient); }