Skip to content

Commit

Permalink
Fix error message (#14)
Browse files Browse the repository at this point in the history
* Fix error message

* update project group names

---------

Co-authored-by: peterli-r3 <[email protected]>
  • Loading branch information
ashutoshmeher-r3 and peterli-r3 authored Aug 10, 2023
1 parent d09aaa0 commit 1dcfef1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions java-samples/encumbrance-pawn-shop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

allprojects {
group 'com.r3.developers.csdetemplate'
group 'com.r3.developers.samples'
version '1.0-SNAPSHOT'

def javaVersion = VERSION_11
Expand Down Expand Up @@ -57,7 +57,7 @@ allprojects {
publishing {
publications {
maven(MavenPublication) {
artifactId "corda-CSDE-java-sample"
artifactId "corda5-encumbrance-cordapp"
groupId project.group
artifact jar
}
Expand Down
2 changes: 1 addition & 1 deletion java-samples/encumbrance-pawn-shop/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pluginManagement {
}

// Root project name, used in naming the project as a whole and used in naming objects built by the project.
rootProject.name = 'encumbrance-pawn-shop'
rootProject.name = 'corda5-encumbrance-cordapp'
include ':workflows'
include ':contracts'

Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public String call(@NotNull ClientRequestBody requestBody) {

if (filteredAssetStateAndRefs.size() != 1) {
throw new CordaRuntimeException(
"Multiple or zero Asset states with id " + flowArgs.getLoanId() + " found");
"Multiple or zero Asset states with id " +
loanStateAndRef.getState().getContractState().getCollateral() + " found");
}

StateAndRef<Asset> assetStateAndRef = filteredAssetStateAndRefs.get(0);
Expand Down

0 comments on commit 1dcfef1

Please sign in to comment.