Skip to content

Adding Encumbrance#90

Merged
ashutoshmeher-r3 merged 2 commits intomigration_projectfrom
ashutosh/PCTCM-27/Add-Encumbrance-Feature
Apr 27, 2023
Merged

Adding Encumbrance#90
ashutoshmeher-r3 merged 2 commits intomigration_projectfrom
ashutosh/PCTCM-27/Add-Encumbrance-Feature

Conversation

@ashutoshmeher-r3
Copy link
Collaborator

No description provided.

Copy link
Contributor

@ja9-look ja9-look left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only very minor typos but apart from that, LGTM

// Bid Contract Verification Logic goes here
if(tx.getInputStates().size() != 1) throw new IllegalArgumentException("One Input Expected");
if(tx.getOutputStates().size() != 1) throw new IllegalArgumentException("One Output Expected");
if(tx.getInputStates().size() != 2) throw new IllegalArgumentException("Two Input Expected");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Two Inputs Expected" and "Two Outputs Expected"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


if(!expiryInput.getAuctionId().equals(expiryOutput.getAuctionId()) &&
!expiryInput.getParticipants().equals(expiryOutput.getParticipants())){
throw new IllegalArgumentException("Auction Id and Par should not change while placing a bid");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Participants"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@ashutoshmeher-r3 ashutoshmeher-r3 merged commit a5ce413 into migration_project Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants