message: fix a bug with explain transaction for double signed algo txes
diff: @@ -60,8 +60,11 @@ export interface HalfSignedTransaction {
  };
  }
  -interface ExplainTransactionOptions {
  +export interface ExplainTransactionOptions {
  + txHex?: string;
  + halfSigned?: {
  txHex: string;
  + };
  }
  export interface VerifiedTransactionParameters {
  @@ -198,9 +201,10 @@ export class Algo extends BaseCoin {
  callback?: NodeCallback<TransactionExplanation>
  ): Bluebird<TransactionExplanation> {
  return co(function*() {
  - const { txHex } = params;
  -
  + // take txHex first always, but as it might already be signed, take halfSigned second
  + let txHex = params.txHex ? params.txHex : params.halfSigned.txHex;
  let tx;
  +
  try {
  const txToHex = Buffer.from(txHex, 'base64');
  const decodedTx = Encoding.decode(txToHex);
  