ddnlink / ddnlink/ddn

Optimize the Buffer, check and modify the following codes

Open
#94 1 comment 0 reactions 2 assignees Claimed by @run-in-time View on GitHub
Dominant language
JavaScript
Stars
222
Forks
55
PR merge metrics
No merged PRs in 30d

Description

- Buffer.from(transfer.amount, 'utf8') : if transfer.amount is not string, it will throw an error.
- Buffer.from([asset.precision || 0]): Can it be optimized?
- Buffer.from(asset.currency, 'utf8') : Encoding default is utf8, instead of Buffer.from(asset.currency, 'hex')?
...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.