@fuel-ts/account 0.0.0-rc-2322-20240517060059 → 0.0.0-rc-2322-20240517062704
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.
@@ -35192,7 +35192,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35192
35192
|
return new Uint8Array([...lengthBytes, ...concatBytes2(bytes2)]);
|
35193
35193
|
}
|
35194
35194
|
decode(data, offset) {
|
35195
|
-
if (!this.#hasNestedOption &&
|
35195
|
+
if (!this.#hasNestedOption && data.length < this.encodedLength || data.length > MAX_BYTES) {
|
35196
35196
|
throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid vec data size.`);
|
35197
35197
|
}
|
35198
35198
|
const offsetAndLength = offset + WORD_SIZE;
|