Exemple #1
0
        protected virtual async Task TestAccount(int level, Account account)
        {
            var remote = await Rpc.GetContractAsync(level, account.Address);

            if (!(account is Data.Models.Delegate) && remote.RequiredInt64("balance") != account.Balance)
            {
                throw new Exception($"Diagnostics failed: wrong balance {account.Address}");
            }

            TestAccountDelegate(remote, account);
            TestAccountCounter(remote, account);
        }