CSL source files must be UTF-8¶
CSL source code must now be encoded using UTF-8. Previously, the locale settings of the computer on which CSL tools were run could affect the expected encoding. Errors related to file encoding or non-English characters in source files can be fixed by re-saving the file using UTF-8.
Removed the type parameter from
This type parameter was not useful and inhibited type inference.
To migrate, simply remove any explicit type parameter given to
If you’ve not provided an explicit type parameter, then it should just work.
com.deondigital.cordapp.client to separate gradle artifact¶
To minimize the footprint of the CSL Cordapp, the client interfaces and classes have been moved to their own gradle artifact.
This affects code that interacts with the CSL Cordapp using classes such as
The package has been moved to csl-cordapp-client in group
Simply add this package to your gradle dependencies to migrate.
c property from
This referenced a value of type
com.deondigital.cordapp.client.CordaAgent which is structurally equivalent to
getInitialStates method from
If you want to list all contracts in your
CordaLedger you should use
Clojure code that references definitions from the
clojure-api library will need to be updated to reference the new locations.
As an example, a ns-form reference such as:
(:require [com.deondigital.value-conversion-api :refer [keyword->qualified-name]]
Must be changed into:
(:require [com.deondigital.clj-api.value-conversion-api :refer [keyword->qualified-name]]