Keychain issue when executing escrow transfer

in Steem Dev14 hours ago

The current version of the Steem Keychain cannot handle the escrow related operations such as escrow_transfer.


Today I played with the codes and succeeded the escrow transfer by modifying this:

// operations/ops/broadcast.ts
const hasEscrow = operations.some(op => op[0] === 'escrow_transfer');

  if (hasEscrow) {
    //  use @steemit/steem-js 
    const steem = require('@steemit/steem-js');

    result = await new Promise((resolve, reject) => {
      const broadcastKeys: any = {};
      broadcastKeys[keyType] = key;

      steem.broadcast.send(
        { operations, extensions: [] },
        broadcastKeys,
        (err, result) => { /* handling */ }
      );
    });
  } else {
    // use steemp-tx-js
    result = await SteemTxUtils.sendOperation(operations, key, false, options);
  }

keychain itself is not the issue but the steem-tx-js. I could not find the source of the issue in the 'steem-tx-js'. What I found is a workaround. At least, there will be a solution to resolve the escrow issue.

@faisalamin



Posted through the ECblog app (https://blog.etain.club)