Skip to content

Commit

Permalink
Merge pull request #602 from UnUniFi/develop
Browse files Browse the repository at this point in the history
Merge #600 to main
  • Loading branch information
Senna46 authored Aug 16, 2023
2 parents bae1b08 + 3c702ec commit a041114
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions projects/explorer/src/app/utils/tx-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const parseMsgSubmitProposal = (
};
};
const parseMsgVoteWeighted = (
instance: cosmosclient.proto.cosmos.gov.v1beta1.MsgVoteWeighted,
instance: cosmosclient.proto.cosmos.gov.v1.MsgVoteWeighted,
): txTitle => {
const denomAmount = instance.options?.[0].weight || '';
const denom = instance.options?.[0].weight;
Expand All @@ -181,7 +181,7 @@ const parseMsgVoteWeighted = (
voteOptions: instance.options,
};
};
const parseMsgVote = (instance: cosmosclient.proto.cosmos.gov.v1beta1.MsgVote): txTitle => {
const parseMsgVote = (instance: cosmosclient.proto.cosmos.gov.v1.MsgVote): txTitle => {
return {
txType: instance.constructor.name,
fromAddress: instance.voter,
Expand All @@ -190,7 +190,7 @@ const parseMsgVote = (instance: cosmosclient.proto.cosmos.gov.v1beta1.MsgVote):
voteOption: instance.option,
};
};
const parseMsgDeposit = (instance: cosmosclient.proto.cosmos.gov.v1beta1.MsgDeposit): txTitle => {
const parseMsgDeposit = (instance: cosmosclient.proto.cosmos.gov.v1.MsgDeposit): txTitle => {
const denomAmount = instance.amount?.[0].amount || '';
const denom = instance.amount?.[0].denom;
const amount = denomAmount + ' ' + denom;
Expand Down
8 changes: 4 additions & 4 deletions projects/portal/src/app/models/cosmos/gov.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ export class GovService {
proposalID: number,
voterAddress: string,
voteOption: cosmosclient.proto.cosmos.gov.v1beta1.VoteOption,
): cosmosclient.proto.cosmos.gov.v1beta1.MsgVote {
const msgVote = new cosmosclient.proto.cosmos.gov.v1beta1.MsgVote({
): cosmosclient.proto.cosmos.gov.v1.MsgVote {
const msgVote = new cosmosclient.proto.cosmos.gov.v1.MsgVote({
proposal_id: Long.fromNumber(proposalID),
voter: voterAddress,
option: voteOption,
Expand Down Expand Up @@ -303,8 +303,8 @@ export class GovService {
proposalID: number,
depositerAddress: string,
amount: cosmosclient.proto.cosmos.base.v1beta1.ICoin,
): cosmosclient.proto.cosmos.gov.v1beta1.MsgDeposit {
const msgDeposit = new cosmosclient.proto.cosmos.gov.v1beta1.MsgDeposit({
): cosmosclient.proto.cosmos.gov.v1.MsgDeposit {
const msgDeposit = new cosmosclient.proto.cosmos.gov.v1.MsgDeposit({
proposal_id: Long.fromNumber(proposalID),
depositor: depositerAddress,
amount: [amount],
Expand Down

0 comments on commit a041114

Please sign in to comment.