public void TestSetup() { keyPair1 = new KeyPair(Wallet.GetPrivateKeyFromWIF("KyXwTh1hB76RRMquSvnxZrJzQx7h9nQP2PCRL38v6VDb5ip3nf1p")); sender = Contract.CreateSignatureRedeemScript(keyPair1.PublicKey).ToScriptHash(); rpcClientMock = UT_TransactionManager.MockRpcClient(sender, new byte[0]); policyAPI = new PolicyAPI(rpcClientMock.Object); }
public PolicyAPIDemo(RpcClient rpcClient) { this.rpcClient = rpcClient; this.policyAPI = new PolicyAPI(rpcClient); }