mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-25 19:15:10 +00:00
fixed bug
This commit is contained in:
parent
b7c6760fd8
commit
fcd39e5296
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ public final class ClaimProcessing implements ContractInterface {
|
||||||
throw new ChaincodeException(errorMessage, ClaimProcessingErrors.CLAIM_ALREADY_EXISTS.toString());
|
throw new ChaincodeException(errorMessage, ClaimProcessingErrors.CLAIM_ALREADY_EXISTS.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
InsClaim claim = new InsClaim(claimID, color, size, owner, appraisedValue);
|
InsClaim claim = new InsClaim(claimID, vin, custId, insuranceId, claimAmount);
|
||||||
//Use Genson to convert the Claim into string, sort it alphabetically and serialize it into a json string
|
//Use Genson to convert the Claim into string, sort it alphabetically and serialize it into a json string
|
||||||
String sortedJson = genson.serialize(claim);
|
String sortedJson = genson.serialize(claim);
|
||||||
stub.putStringState(claimID, sortedJson);
|
stub.putStringState(claimID, sortedJson);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue