/** * Revoke specified contract and create a revocation transactional contract. * * @param contract * * @return Parcel - revoking transaction contract. */ public static Parcel revokeContract(Contract contract, Contract u, int amount, Set<PrivateKey> uKeys, boolean withTestPayment, PrivateKey... key) throws IOException { report("keys num: " + key.length); Contract tc = ContractsService.createRevocation(contract, key); Parcel parcel = prepareForRegisterContract(tc, u, amount, uKeys, withTestPayment); if (parcel != null) registerParcel(parcel, 0); return parcel; }
+ " for " + uAmount + " U"); report("cnotactId: "+contract.getId().toBase64String()); parcel = prepareForRegisterContract(contract, u, uAmount, uKeys, utest); newUContract = parcel.getPaymentContract(); } else { // if storage payment
+ " for " + uAmount + " U"); report("contractId: "+contract.getId().toBase64String()); parcel = prepareForRegisterContract(contract, u, uAmount, uKeys, utest); newUContract = parcel.getPaymentContract(); } else { // if storage payment