diff --git a/src/libs/data/proposal.js b/src/libs/data/proposal.js index 056007a7..5b62cfcf 100644 --- a/src/libs/data/proposal.js +++ b/src/libs/data/proposal.js @@ -34,6 +34,10 @@ export default class Proposal { if (this.contents) { this.title = this.contents.title this.description = this.contents.description + this.type = element.content.type + if (element.content['@type']) { + this.type = element.content['@type'] + } } this.metadata = element.metadata return this @@ -50,6 +54,7 @@ export default class Proposal { versionFixed(ver) { if (compareVersions(ver, '0.46') >= 0) { [this.contents] = this.element.messages + if (this.contents) this.type = this.contents['@type'] if (this.contents['@type'] === '/cosmos.gov.v1.MsgExecLegacyContent') { this.title = this.contents.content.title this.description = this.contents.content.description diff --git a/src/views/GovernanceProposalView.vue b/src/views/GovernanceProposalView.vue index d0807b78..16e28dbd 100644 --- a/src/views/GovernanceProposalView.vue +++ b/src/views/GovernanceProposalView.vue @@ -68,7 +68,7 @@ {{ $t('voting_time') }} {{ formatDate(proposal.voting_start_time) }} - {{ formatDate(proposal.voting_end_time) }} - + Metadata {{ proposal.metadata }} @@ -80,6 +80,21 @@ {{ $t('upgrade_time') }} {{ upgradeTime }} + + + + 7s + + + 6s + + + 2s + + + 1s + + @@ -263,7 +278,7 @@