Amount<T> is deserialised from JSON,YAML as Amount<Currency>, for all values of T

Description

Corda defines the Amount class as:

and obviously intends for users to handle amounts of their own type, c.f. FungibleAsset. However, we have configured our JSON library always to deserialise it as if T is java.util.Currency.

We need to teach Corda how to deserialise amounts which are not Currency.

Assignee

Chris Rankin

Reporter

Chris Rankin

Labels

Priority

Medium

Fix versions

Ported to...

None

Feature Team

Corda Core

CVSS Vector

None

Engineering Teams

None

Severity

Medium
Configure