@aeternity/aepp-sdk 13.2.0 → 13.2.1

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.
package/dist/aepp-sdk.js CHANGED
@@ -12055,7 +12055,7 @@ function isAuctionName(name) {
12055
12055
 
12056
12056
  /* harmony default export */ const u_int = ({
12057
12057
  serialize(value) {
12058
- if (+value < 0) throw new ArgumentError('value', 'greater or equal to 0', value);
12058
+ if (Number(value) < 0) throw new ArgumentError('value', 'greater or equal to 0', value);
12059
12059
  return toBytes(value, true);
12060
12060
  },
12061
12061
  deserialize(value) {
@@ -21160,7 +21160,7 @@ class Contract {
21160
21160
  } = opt;
21161
21161
  if (fn == null) throw new MissingFunctionNameError();
21162
21162
  if (fn === 'init' && callStatic !== true) throw new InvalidMethodInvocationError('"init" can be called only via dryRun');
21163
- if (fn !== 'init' && opt.amount != null && +opt.amount > 0 && !fnAci.payable) {
21163
+ if (fn !== 'init' && opt.amount != null && Number(opt.amount) > 0 && !fnAci.payable) {
21164
21164
  throw new NotPayableFunctionError(opt.amount, fn);
21165
21165
  }
21166
21166
  let callerId;