mirror of
https://github.com/corda/corda.git
synced 2025-02-20 09:26:41 +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"]
|
||||
}
|
||||
node {
|
||||
name "O=Bank C,L=Tokyo,C=Japan"
|
||||
name "O=Bank C,L=Tokyo,C=JP"
|
||||
advertisedServices = []
|
||||
p2pPort 10008
|
||||
webPort 10009
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user