@fuel-ts/account 0.0.0-rc-2021-20240418134745 → 0.0.0-rc-2021-20240418135503

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

@@ -280,7 +280,7 @@
280
280
  }
281
281
  return num !== null && typeof num === "object" && num.constructor.wordSize === BN2.wordSize && Array.isArray(num.words);
282
282
  };
283
- BN2.max = function max2(left, right) {
283
+ BN2.max = function max(left, right) {
284
284
  if (left.cmp(right) > 0)
285
285
  return left;
286
286
  return right;
@@ -35390,21 +35390,21 @@ This unreleased fuel-core build may include features and updates not yet support
35390
35390
  var coinQuantityfy = (coinQuantityLike) => {
35391
35391
  let assetId;
35392
35392
  let amount;
35393
- let max2;
35393
+ let max;
35394
35394
  if (Array.isArray(coinQuantityLike)) {
35395
35395
  amount = coinQuantityLike[0];
35396
35396
  assetId = coinQuantityLike[1] ?? BaseAssetId;
35397
- max2 = coinQuantityLike[2] ?? void 0;
35397
+ max = coinQuantityLike[2] ?? void 0;
35398
35398
  } else {
35399
35399
  amount = coinQuantityLike.amount;
35400
35400
  assetId = coinQuantityLike.assetId ?? BaseAssetId;
35401
- max2 = coinQuantityLike.max ?? void 0;
35401
+ max = coinQuantityLike.max ?? void 0;
35402
35402
  }
35403
35403
  const bnAmount = bn(amount);
35404
35404
  return {
35405
35405
  assetId: hexlify(assetId),
35406
35406
  amount: bnAmount.lt(1) ? bn(1) : bnAmount,
35407
- max: max2 ? bn(max2) : void 0
35407
+ max: max ? bn(max) : void 0
35408
35408
  };
35409
35409
  };
35410
35410
  var addAmountToCoinQuantities = (params) => {
@@ -35823,7 +35823,7 @@ This unreleased fuel-core build may include features and updates not yet support
35823
35823
  constructor(name, coders) {
35824
35824
  const caseIndexCoder = new BigNumberCoder("u64");
35825
35825
  const encodedValueSize = Object.values(coders).reduce(
35826
- (max2, coder) => Math.max(max2, coder.encodedLength),
35826
+ (max, coder) => Math.max(max, coder.encodedLength),
35827
35827
  0
35828
35828
  );
35829
35829
  super(`enum ${name}`, `enum ${name}`, caseIndexCoder.encodedLength + encodedValueSize);
@@ -36527,7 +36527,7 @@ This unreleased fuel-core build may include features and updates not yet support
36527
36527
  constructor(name, coders) {
36528
36528
  const caseIndexCoder = new BigNumberCoder("u64");
36529
36529
  const encodedValueSize = Object.values(coders).reduce(
36530
- (max2, coder) => Math.max(max2, coder.encodedLength),
36530
+ (max, coder) => Math.max(max, coder.encodedLength),
36531
36531
  0
36532
36532
  );
36533
36533
  super(`enum ${name}`, `enum ${name}`, caseIndexCoder.encodedLength + encodedValueSize);