@accordproject/cicero-tools
Advanced tools
Comparing version 0.12.3-20190515152902 to 0.12.3-20190515211313
@@ -33,5 +33,5 @@ /* | ||
if(clazz.getFullyQualifiedName() === 'org.accordproject.money.MonetaryAmount') { | ||
parameters.fileWriter.writeLine(0, 'import java.math.BigDecimal;'); | ||
parameters.fileWriter.writeLine(0, 'import java.util.Currency;'); | ||
parameters.fileWriter.writeLine(0, 'import net.corda.core.contracts.Amount;'); | ||
parameters.fileWriter.writeLine(0, 'import net.corda.finance.Currencies;'); | ||
} | ||
@@ -61,3 +61,3 @@ } | ||
public Amount<Currency> getCurrency() { | ||
return Amount.fromDecimal(BigDecimal.valueOf(doubleValue), Currency.getInstance("USD")); | ||
return Amount.fromDecimal(BigDecimal.valueOf(doubleValue), Currency.getInstance(currencyCode.name())); | ||
} | ||
@@ -64,0 +64,0 @@ ` |
{ | ||
"name": "@accordproject/cicero-tools", | ||
"version": "0.12.3-20190515152902", | ||
"version": "0.12.3-20190515211313", | ||
"description": "Cicero Tools", | ||
@@ -5,0 +5,0 @@ "engines": { |
69570