From e39c7a222a08fce5b693cadb7cd4955cb4065f50 Mon Sep 17 00:00:00 2001 From: Katelyn Baker Date: Fri, 18 May 2018 15:46:04 +0100 Subject: [PATCH] CORDA-1386 - Updates withoutIssuer to not strip display token size. (#3191) --- core/src/main/kotlin/net/corda/core/contracts/Structures.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/net/corda/core/contracts/Structures.kt b/core/src/main/kotlin/net/corda/core/contracts/Structures.kt index bf01867057..6025ec0351 100644 --- a/core/src/main/kotlin/net/corda/core/contracts/Structures.kt +++ b/core/src/main/kotlin/net/corda/core/contracts/Structures.kt @@ -62,7 +62,7 @@ const val MAX_ISSUER_REF_SIZE = 512 * cares about specific issuers with code that will accept any, or which is imposing issuer constraints via some * other mechanism and the additional type safety is not wanted. */ -fun Amount>.withoutIssuer(): Amount = Amount(quantity, token.product) +fun Amount>.withoutIssuer(): Amount = Amount(quantity, displayTokenSize, token.product) // DOCSTART 3