Skip to content

Commit

Permalink
refactor(core-database): convert htlc lock vendorfield to string duri…
Browse files Browse the repository at this point in the history
…ng bootstrap (#3145)
  • Loading branch information
dated authored and faustbrian committed Oct 27, 2019
1 parent deef78d commit 95df802
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core-transactions/src/handlers/htlc-lock.ts
Expand Up @@ -28,7 +28,9 @@ export class HtlcLockTransactionHandler extends TransactionHandler {
amount: Utils.BigNumber.make(transaction.amount),
recipientId: transaction.recipientId,
timestamp: transaction.timestamp,
vendorField: transaction.vendorField ? transaction.vendorField : undefined,
vendorField: transaction.vendorField
? Buffer.from(transaction.vendorField, "hex").toString("utf8")
: undefined,
...transaction.asset.lock,
};
wallet.setAttribute("htlc.locks", locks);
Expand Down

0 comments on commit 95df802

Please sign in to comment.