@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.
@@ -28913,7 +28913,7 @@ spurious results.`);
|
|
28913
28913
|
return {
|
28914
28914
|
FORC: "0.65.2",
|
28915
28915
|
FUEL_CORE: "0.38.0",
|
28916
|
-
FUELS: "0.
|
28916
|
+
FUELS: "0.96.0"
|
28917
28917
|
};
|
28918
28918
|
}
|
28919
28919
|
function parseVersion(version) {
|
@@ -33031,8 +33031,11 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33031
33031
|
}
|
33032
33032
|
/** @hidden */
|
33033
33033
|
static toChecksum(address) {
|
33034
|
+
if (!isB256(address)) {
|
33035
|
+
throw new Error("Invalid B256 Address");
|
33036
|
+
}
|
33034
33037
|
const addressHex = hexlify(address).toLowerCase().slice(2);
|
33035
|
-
const checksum = sha256(
|
33038
|
+
const checksum = sha256(addressHex);
|
33036
33039
|
let ret2 = "0x";
|
33037
33040
|
for (let i = 0; i < 32; ++i) {
|
33038
33041
|
const byte = checksum[i];
|