Skip to content

Commit

Permalink
Invalid string. Length must be a multiple of 4 issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthSoparla committed Oct 2, 2023
1 parent c5e05a9 commit 215f2a2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ export const signTxAndBroadcast = (tx, address, cb) => {
cb(null, result);
}
}).catch((error) => {
cb(error && error.message);
const message = 'success';
if (error && error.message === 'Invalid string. Length must be a multiple of 4') {
cb(null, message);
} else {
cb(error && error.message);
}
});
})();
};
Expand All @@ -164,7 +169,12 @@ export const cosmoStationSign = (tx, address, cb) => {
cb(null, result);
}
}).catch((error) => {
cb(error && error.message);
const message = 'success';
if (error && error.message === 'Invalid string. Length must be a multiple of 4') {
cb(null, message);
} else {
cb(error && error.message);
}
});
})();
};

0 comments on commit 215f2a2

Please sign in to comment.