@qidao/sdk 5.0.6 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,6 @@ var JSBI = _interopDefault(require('jsbi'));
|
|
|
8
8
|
var invariant = _interopDefault(require('tiny-invariant'));
|
|
9
9
|
var warning = _interopDefault(require('tiny-warning'));
|
|
10
10
|
var address = require('@ethersproject/address');
|
|
11
|
-
var utils = require('utils');
|
|
12
11
|
var _Big = _interopDefault(require('big.js'));
|
|
13
12
|
var toFormat = _interopDefault(require('toformat'));
|
|
14
13
|
var _Decimal = _interopDefault(require('decimal.js-light'));
|
|
@@ -397,7 +396,7 @@ var Currency = /*#__PURE__*/function () {
|
|
|
397
396
|
* @param name of the currency
|
|
398
397
|
*/
|
|
399
398
|
function Currency(decimals, symbol, name) {
|
|
400
|
-
|
|
399
|
+
validateSolidityTypeInstance(JSBI.BigInt(decimals), SolidityType.uint8);
|
|
401
400
|
this.decimals = decimals;
|
|
402
401
|
this.symbol = symbol;
|
|
403
402
|
this.name = name;
|