mirror of
https://github.com/corda/corda.git
synced 2025-05-03 09:12:55 +00:00
Simm demo fixes (#1475)
* Fix country code, needs to be 2 letters (#1468) * Fix x500 name in simm (#1468)
This commit is contained in:
parent
65dcfe4abe
commit
cd0d2f370e
@ -85,7 +85,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
|
|||||||
cordapps = ["net.corda:finance:$corda_release_version"]
|
cordapps = ["net.corda:finance:$corda_release_version"]
|
||||||
}
|
}
|
||||||
node {
|
node {
|
||||||
name "O=Bank C,L=Tokyo,C=Japan"
|
name "O=Bank C,L=Tokyo,C=JP"
|
||||||
advertisedServices = []
|
advertisedServices = []
|
||||||
p2pPort 10008
|
p2pPort 10008
|
||||||
webPort 10009
|
webPort 10009
|
||||||
|
@ -37,7 +37,7 @@ export class AppComponent {
|
|||||||
var name = x500Name;
|
var name = x500Name;
|
||||||
x500Name.split(',').forEach(function (element) {
|
x500Name.split(',').forEach(function (element) {
|
||||||
var keyValue = element.split('=');
|
var keyValue = element.split('=');
|
||||||
if (keyValue[0].toUpperCase() == 'CN') {
|
if (keyValue[0].toUpperCase() == 'O') {
|
||||||
name = keyValue[1];
|
name = keyValue[1];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -49,10 +49,11 @@ export class AppComponent {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.httpWrapperService.getAbsolute("whoami").toPromise().then((data) => {
|
this.httpWrapperService.getAbsolute("whoami").toPromise().then((data) => {
|
||||||
this.whoAmI = this.renderX500Name(data.self.text);
|
this.whoAmI = this.renderX500Name(data.self.text);
|
||||||
|
var self = this;
|
||||||
this.counterParties = data.counterparties.map(function (x) {
|
this.counterParties = data.counterparties.map(function (x) {
|
||||||
return {
|
return {
|
||||||
id: x.id,
|
id: x.id,
|
||||||
text: this.renderX500Name(x.text)
|
text: self.renderX500Name(x.text)
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
if (this.counterParties.length == 0) {
|
if (this.counterParties.length == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user