mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
[CORDA-2213]: IRS Demo is unable to simulate future dates (fix). (#4384)
* [CORDA-2213]: IRS Demo is unable to simulate future dates (fix). * [CORDA-2213]: IRS Demo is unable to simulate future dates (fix).
This commit is contained in:
parent
3f46dec033
commit
c31da13c70
@ -11,6 +11,8 @@ Unreleased
|
||||
This allows Corda 4 signed CorDapps using signature constraints to consume existing hash constrained states generated
|
||||
by unsigned CorDapps in previous versions of Corda.
|
||||
|
||||
* Fixed a problem with IRS demo not being able to simulate future dates as expected (https://github.com/corda/corda/issues/3851).
|
||||
|
||||
* ``SwapIdentitiesFlow``, from the experimental confidential-identities module, is now an inlined flow. Instead of passing in a ``Party`` with
|
||||
whom to exchange the anonymous identity, a ``FlowSession`` to that party is required instead. The flow running on the other side must
|
||||
also call ``SwapIdentitiesFlow``. This change was required as the previous API allowed any counterparty to generate anonoymous identities
|
||||
|
@ -34,7 +34,7 @@ define(['angular', 'lodash', 'viewmodel/Deal'], function (angular, _, dealViewMo
|
||||
|
||||
this.getDate = function () {
|
||||
return load('date', $http.get(endpoint('/api/irs/demodate'))).then(function (resp) {
|
||||
var dateParts = resp.data;
|
||||
var dateParts = resp.data.split("-");
|
||||
date = new Date(dateParts[0], dateParts[1] - 1, dateParts[2]); // JS uses 0 based months
|
||||
return _this.getDateModel(date);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user