Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LF-Decentralized-Trust-labs/paladin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7ab87a560d2ab8dd0c6baed00d400171b0e3130a
Choose a base ref
..
head repository: LF-Decentralized-Trust-labs/paladin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f8d519797fd81e35dcf37c14042fd241cdac0f69
Choose a head ref
Original file line number Diff line number Diff line change
@@ -307,7 +307,6 @@ void testBond() throws Exception {
bondTransferMetadata.approvalParams().signatures());
var receipt = TestbedHelper.pollForReceipt(testbed, txID, 3000);
assertNotNull(receipt);
assertTrue(receipt.success());

// Execute the Atom
txID = TestbedHelper.sendTransaction(testbed,
@@ -322,7 +321,14 @@ void testBond() throws Exception {
));
receipt = TestbedHelper.pollForReceipt(testbed, txID, 3000);
assertNotNull(receipt);
assertTrue(receipt.success());

// All prepared transactions should now be resolved
receipt = TestbedHelper.pollForReceipt(testbed, paymentTransfer.id(), 3000);
assertNotNull(receipt);
receipt = TestbedHelper.pollForReceipt(testbed, bondTransfer2.id(), 3000);
assertNotNull(receipt);
receipt = TestbedHelper.pollForReceipt(testbed, bondTransfer.id(), 3000);
assertNotNull(receipt);

// TODO: figure out how to test negative cases (such as when Pente reverts due to a non-allowed investor)

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.kaleido.paladin.pente.domain.helpers;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.kaleido.paladin.testbed.Testbed;
@@ -22,6 +23,7 @@ public static Object getTransactionReceipt(Testbed testbed, String txID) throws
return testbed.getRpcClient().request("ptx_getTransactionReceiptFull", txID);
}

@JsonIgnoreProperties(ignoreUnknown = true)
public record TransactionReceipt(
@JsonProperty
String id,