Simm demo fixes (#1475)

* Fix country code, needs to be 2 letters (#1468)

* Fix x500 name in simm (#1468)
This commit is contained in:
cburlinchon 2017-09-11 14:43:55 +01:00 committed by GitHub
parent 65dcfe4abe
commit cd0d2f370e
2 changed files with 4 additions and 3 deletions

View File

@ -85,7 +85,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
cordapps = ["net.corda:finance:$corda_release_version"]
}
node {
name "O=Bank C,L=Tokyo,C=Japan"
name "O=Bank C,L=Tokyo,C=JP"
advertisedServices = []
p2pPort 10008
webPort 10009

View File

@ -37,7 +37,7 @@ export class AppComponent {
var name = x500Name;
x500Name.split(',').forEach(function (element) {
var keyValue = element.split('=');
if (keyValue[0].toUpperCase() == 'CN') {
if (keyValue[0].toUpperCase() == 'O') {
name = keyValue[1];
}
});
@ -49,10 +49,11 @@ export class AppComponent {
ngOnInit() {
this.httpWrapperService.getAbsolute("whoami").toPromise().then((data) => {
this.whoAmI = this.renderX500Name(data.self.text);
var self = this;
this.counterParties = data.counterparties.map(function (x) {
return {
id: x.id,
text: this.renderX500Name(x.text)
text: self.renderX500Name(x.text)
};
});
if (this.counterParties.length == 0) {