@secretkeylabs/stacks-tools 0.4.0-13a5f23 → 0.4.0-16d7217
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 +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1151,7 +1151,7 @@ async function mapEntry(args) {
|
|
|
1151
1151
|
};
|
|
1152
1152
|
}
|
|
1153
1153
|
init.method = "POST";
|
|
1154
|
-
init.body = args.mapKey
|
|
1154
|
+
init.body = args.mapKey.startsWith("0x") ? args.mapKey : `0x${args.mapKey}`;
|
|
1155
1155
|
const endpoint = `${args.baseUrl}/v2/map_entry/${args.contractAddress}/${args.contractName}/${args.mapName}?${search}`;
|
|
1156
1156
|
const res = await fetch(endpoint, init);
|
|
1157
1157
|
if (!res.ok) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1441,6 +1441,9 @@ type Args$1 = {
|
|
|
1441
1441
|
contractAddress: string;
|
|
1442
1442
|
contractName: string;
|
|
1443
1443
|
mapName: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* Hex-encoded string of the map key Clarity value.
|
|
1446
|
+
*/
|
|
1444
1447
|
mapKey: string;
|
|
1445
1448
|
} & ApiRequestOptions & ProofAndTip;
|
|
1446
1449
|
declare const mapEntryResponseSchema: v.ObjectSchema<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1441,6 +1441,9 @@ type Args$1 = {
|
|
|
1441
1441
|
contractAddress: string;
|
|
1442
1442
|
contractName: string;
|
|
1443
1443
|
mapName: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* Hex-encoded string of the map key Clarity value.
|
|
1446
|
+
*/
|
|
1444
1447
|
mapKey: string;
|
|
1445
1448
|
} & ApiRequestOptions & ProofAndTip;
|
|
1446
1449
|
declare const mapEntryResponseSchema: v.ObjectSchema<{
|
package/dist/index.js
CHANGED
|
@@ -1107,7 +1107,7 @@ async function mapEntry(args) {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
}
|
|
1109
1109
|
init.method = "POST";
|
|
1110
|
-
init.body = args.mapKey
|
|
1110
|
+
init.body = args.mapKey.startsWith("0x") ? args.mapKey : `0x${args.mapKey}`;
|
|
1111
1111
|
const endpoint = `${args.baseUrl}/v2/map_entry/${args.contractAddress}/${args.contractName}/${args.mapName}?${search}`;
|
|
1112
1112
|
const res = await fetch(endpoint, init);
|
|
1113
1113
|
if (!res.ok) {
|