@medialane/sdk 0.125.0 → 0.126.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.cjs +0 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +1 -6
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +0 -2
- package/dist/starknet/index.d.ts +0 -2
- package/dist/starknet/index.js +1 -6
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/starknet/index.cjs
CHANGED
|
@@ -12040,7 +12040,6 @@ async function executeSponsored(config, signer, calls) {
|
|
|
12040
12040
|
const doFetch = config.fetchImpl ?? fetch;
|
|
12041
12041
|
const base = config.proxyUrl.replace(/\/$/, "");
|
|
12042
12042
|
const headers = { "Content-Type": "application/json" };
|
|
12043
|
-
if (config.identityToken) headers.Authorization = `Bearer ${config.identityToken}`;
|
|
12044
12043
|
const buildRes = await doFetch(`${base}/build`, {
|
|
12045
12044
|
method: "POST",
|
|
12046
12045
|
headers,
|
|
@@ -12638,11 +12637,7 @@ function sponsoredExecutor(deps) {
|
|
|
12638
12637
|
async execute(input) {
|
|
12639
12638
|
const { userAddress, privateKeyHex, calls } = input;
|
|
12640
12639
|
const result = await executeSponsored(
|
|
12641
|
-
{
|
|
12642
|
-
proxyUrl: deps.proxyUrl,
|
|
12643
|
-
fetchImpl: deps.fetchImpl,
|
|
12644
|
-
identityToken: deps.identityToken?.() ?? void 0
|
|
12645
|
-
},
|
|
12640
|
+
{ proxyUrl: deps.proxyUrl, fetchImpl: deps.fetchImpl },
|
|
12646
12641
|
{
|
|
12647
12642
|
address: userAddress,
|
|
12648
12643
|
signTypedData: async (data) => signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(data, userAddress))
|