@fuel-ts/account 0.95.0 → 0.96.0
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/index.global.js
CHANGED
@@ -28922,7 +28922,7 @@ spurious results.`);
|
|
28922
28922
|
return {
|
28923
28923
|
FORC: "0.65.2",
|
28924
28924
|
FUEL_CORE: "0.38.0",
|
28925
|
-
FUELS: "0.
|
28925
|
+
FUELS: "0.96.0"
|
28926
28926
|
};
|
28927
28927
|
}
|
28928
28928
|
function parseVersion(version) {
|
@@ -32256,8 +32256,11 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
32256
32256
|
}
|
32257
32257
|
/** @hidden */
|
32258
32258
|
static toChecksum(address) {
|
32259
|
+
if (!isB256(address)) {
|
32260
|
+
throw new Error("Invalid B256 Address");
|
32261
|
+
}
|
32259
32262
|
const addressHex = hexlify(address).toLowerCase().slice(2);
|
32260
|
-
const checksum = sha256(
|
32263
|
+
const checksum = sha256(addressHex);
|
32261
32264
|
let ret2 = "0x";
|
32262
32265
|
for (let i = 0; i < 32; ++i) {
|
32263
32266
|
const byte = checksum[i];
|