New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@accordproject/cicero-tools

Package Overview
Dependencies
Maintainers
6
Versions
542
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accordproject/cicero-tools - npm Package Compare versions

Comparing version 0.12.3-20190515152902 to 0.12.3-20190515211313

4

lib/codegen/fromcto/corda/cordaplugin.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc