fixed empty messages issue

This commit is contained in:
liangping 2022-12-07 20:36:52 +08:00
parent f3de156546
commit 76337f02d0

View File

@ -53,7 +53,7 @@ export default class Proposal {
versionFixed(ver) { versionFixed(ver) {
if (compareVersions(ver, '0.46') >= 0) { if (compareVersions(ver, '0.46') >= 0) {
[this.contents] = this.element.messages if (this.element.messages) [this.contents] = this.element.messages
if (this.contents) this.type = this.contents['@type'] if (this.contents) this.type = this.contents['@type']
if (this.contents['@type'] === '/cosmos.gov.v1.MsgExecLegacyContent') { if (this.contents['@type'] === '/cosmos.gov.v1.MsgExecLegacyContent') {
this.title = this.contents.content.title this.title = this.contents.content.title