Skip to content

Commit

Permalink
Merge pull request #382 from crypto-matto/fix/MsgDeposit
Browse files Browse the repository at this point in the history
Problem: Fix MsgDeposit proposa_id field
  • Loading branch information
cdc-Hitesh authored Jul 25, 2022
2 parents 63d168c + 478252b commit dcf16f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## v1.0.7
- Fix incorrect `proposal_id` type of `MsgDeposit` in Amino format

## v1.0.6
- Added support for `MsgDeposit` and `MsgSubmitProposal` in Amino format

Expand Down
2 changes: 1 addition & 1 deletion lib/src/transaction/msg/v2/gov/v2.MsgDeposit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('Testing MsgDeposit', function () {
const rawMsg: legacyAmino.Msg = {
type: 'cosmos-sdk/MsgDeposit',
value: {
proposal_id: Long.fromNumber(1244000, true),
proposal_id: '1244000',
depositor: 'tcro184lta2lsyu47vwyp2e8zmtca3k5yq85p6c4vp3',
amount: [coin.toCosmosCoin()],
},
Expand Down
2 changes: 1 addition & 1 deletion lib/src/transaction/msg/v2/gov/v2.MsgDeposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const msgDepositV2 = function (config: InitConfigurations) {

// eslint-disable-next-line class-methods-use-this
toRawAminoMsg(): legacyAmino.Msg {
const proposal = Long.fromNumber(this.proposalId.toNumber(), true);
const proposal = this.proposalId.toString();
return {
type: 'cosmos-sdk/MsgDeposit',
value: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crypto-org-chain/chain-jslib",
"version": "1.0.6",
"version": "1.0.7",
"description": "Crypto.org Chain JavaScript library",
"author": "Crypto.org <[email protected]>",
"license": "Apache-2.0",
Expand Down

0 comments on commit dcf16f6

Please sign in to comment.