Ejemplo n.º 1
0
        public void TestMigrate()
        {
            string     path = GetRandomPath();
            UserWallet uw   = UserWallet.Create(path, "123", ProtocolSettings.Default);

            uw.CreateAccount(keyPair.PrivateKey);
            string     npath  = CreateWalletFile(); // Scrypt test values
            NEP6Wallet nw     = NEP6Wallet.Migrate(npath, path, "123", ProtocolSettings.Default);
            bool       result = nw.Contains(testScriptHash);

            Assert.AreEqual(true, result);
            uw.Delete();
            nw.Delete();
        }