Optimize the Buffer, check and modify the following codes
Open
- 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.