@solana/web3.js 2.0.0-experimental.2f6fdd4 → 2.0.0-experimental.320ccbb
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.
|
@@ -729,9 +729,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
729
729
|
if (numBytes !== 32) {
|
|
730
730
|
throw new Error(`Expected input string to decode to a byte array of length 32. Actual length: ${numBytes}`);
|
|
731
731
|
}
|
|
732
|
-
} catch (
|
|
732
|
+
} catch (e3) {
|
|
733
733
|
throw new Error(`\`${putativeBase58EncodedAddress}\` is not a base-58 encoded address`, {
|
|
734
|
-
cause:
|
|
734
|
+
cause: e3
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
}
|
|
@@ -903,11 +903,11 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
903
903
|
seeds: [...seeds, new Uint8Array([bumpSeed])]
|
|
904
904
|
})
|
|
905
905
|
};
|
|
906
|
-
} catch (
|
|
907
|
-
if (
|
|
906
|
+
} catch (e3) {
|
|
907
|
+
if (e3 instanceof PointOnCurveError) {
|
|
908
908
|
bumpSeed--;
|
|
909
909
|
} else {
|
|
910
|
-
throw
|
|
910
|
+
throw e3;
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
}
|
|
@@ -1014,9 +1014,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
1014
1014
|
if (numBytes !== 32) {
|
|
1015
1015
|
throw new Error(`Expected input string to decode to a byte array of length 32. Actual length: ${numBytes}`);
|
|
1016
1016
|
}
|
|
1017
|
-
} catch (
|
|
1017
|
+
} catch (e3) {
|
|
1018
1018
|
throw new Error(`\`${putativeBlockhash}\` is not a blockhash`, {
|
|
1019
|
-
cause:
|
|
1019
|
+
cause: e3
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
@@ -2183,14 +2183,14 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
2183
2183
|
if (signal) {
|
|
2184
2184
|
const responsePromise = coalescedRequest.responsePromise;
|
|
2185
2185
|
return await new Promise((resolve, reject) => {
|
|
2186
|
-
const handleAbort = (
|
|
2186
|
+
const handleAbort = (e3) => {
|
|
2187
2187
|
signal.removeEventListener("abort", handleAbort);
|
|
2188
2188
|
coalescedRequest.numConsumers -= 1;
|
|
2189
2189
|
if (coalescedRequest.numConsumers === 0) {
|
|
2190
2190
|
const abortController = coalescedRequest.abortController;
|
|
2191
2191
|
abortController.abort();
|
|
2192
2192
|
}
|
|
2193
|
-
const abortError = new DOMException(
|
|
2193
|
+
const abortError = new DOMException(e3.target.reason, "AbortError");
|
|
2194
2194
|
reject(abortError);
|
|
2195
2195
|
};
|
|
2196
2196
|
signal.addEventListener("abort", handleAbort);
|