public void TestCreateAccount2() { MyWallet wallet = new MyWallet(); Contract contract = Contract.Create(new ContractParameterType[] { ContractParameterType.Boolean }, new byte[] { 1 }); WalletAccount account = wallet.CreateAccount(contract, UT_Crypto.generateCertainKey(32).PrivateKey); account.Should().NotBeNull(); wallet = new MyWallet(); account = wallet.CreateAccount(contract, (byte[])(null)); account.Should().NotBeNull(); }
public static void ClassInit(TestContext context) { glkey = UT_Crypto.generateCertainKey(32); nep2Key = glkey.Export("pwd", 0, 0, 0); }
public static void ClassInit(TestContext context) { glkey = UT_Crypto.generateCertainKey(32); nep2Key = glkey.Export("pwd", ProtocolSettings.Default.AddressVersion, 2, 1, 1); }
public void TestSetup() { key = UT_Crypto.generateCertainKey(32); }