mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add missing descriptions in util.js
This commit is contained in:
parent
7b5d506cec
commit
6da00c4061
@ -49,8 +49,8 @@ function sufficientBalance (txParams, hexBalance) {
|
|||||||
/**
|
/**
|
||||||
* Converts a BN object to a hex string with a '0x' prefix
|
* Converts a BN object to a hex string with a '0x' prefix
|
||||||
*
|
*
|
||||||
* @param {BN} inputBn Description
|
* @param {BN} inputBn The BN to convert to a hex string
|
||||||
* @returns {string} A hex string
|
* @returns {string} A '0x' prefixed hex string
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function bnToHex (inputBn) {
|
function bnToHex (inputBn) {
|
||||||
@ -72,8 +72,8 @@ function hexToBn (inputHex) {
|
|||||||
* Used to multiply a BN by a fraction
|
* Used to multiply a BN by a fraction
|
||||||
*
|
*
|
||||||
* @param {BN} targetBN The number to multiply by a fraction
|
* @param {BN} targetBN The number to multiply by a fraction
|
||||||
* @param {number|string} numerator
|
* @param {number|string} numerator The numerator of the fraction multiplier
|
||||||
* @param {number|string} denominator
|
* @param {number|string} denominator The denominator of the fraction multiplier
|
||||||
* @returns {BN} The product of the multiplication
|
* @returns {BN} The product of the multiplication
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user