예제 #1
0
파일: UT_NEP6Wallet.cs 프로젝트: zhmkof/neo
        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();
        }