Skip to content

Commit

Permalink
fix(core-transactions): do not attempt to convert vendorfield (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
spkjp committed Nov 22, 2019
1 parent 218555a commit a7034bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core-transactions/src/handlers/htlc-lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ export class HtlcLockTransactionHandler extends TransactionHandler {
amount: transaction.data.amount,
recipientId: transaction.data.recipientId,
timestamp: transaction.timestamp,
vendorField: transaction.data.vendorField
? Buffer.from(transaction.data.vendorField, "hex").toString("utf8")
: undefined,
vendorField: transaction.data.vendorField,
...transaction.data.asset.lock,
};
sender.setAttribute("htlc.locks", locks);
Expand Down

0 comments on commit a7034bf

Please sign in to comment.