Skip to content

Commit

Permalink
crypto-org-chain#281: Remove & fix Todo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdc-Hitesh committed Jun 16, 2021
1 parent 87e329f commit f596f79
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { IMsgProposalContent } from '../IMsgProposalContent';
import { owSoftwareUpgradeProposalOptions } from '../ow.types';
import { COSMOS_MSG_TYPEURL } from '../../../common/constants/typeurl';
import { Network } from '../../../../network/network';
// import { Network } from '../../../../network/network';

export const softwareUpgradeProposal = function () {
return class SoftwareUpgradeProposal implements IMsgProposalContent {
Expand Down
1 change: 0 additions & 1 deletion lib/src/transaction/msg/staking/MsgBeginRedelegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const msgBeginRedelegate = function (config: InitConfigurations) {
delegatorAddress: parsedMsg.delegator_address,
validatorDstAddress: parsedMsg.validator_dst_address,
validatorSrcAddress: parsedMsg.validator_src_address,
// TODO: Handle the complete list
amount: cro.Coin.fromCustomAmountDenom(parsedMsg.amount.amount, parsedMsg.amount.denom),
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/txDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const handleCustomTypes = (obj: any) => {
Object.keys(obj).forEach((k) => {
if (typeof obj[k] === 'object' && obj[k] !== null) {
if (obj[k] instanceof Long) {
// todo: I will fix the below unsuggested version
// Recursively keeping same object
obj[k] = obj[k].toString(10); // eslint-disable-line no-param-reassign
}
handleCustomTypes(obj[k]);
Expand Down

0 comments on commit f596f79

Please sign in to comment.