@solana-mobile/dapp-store-publishing-tools 0.1.5 → 0.1.6
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.
|
@@ -3,7 +3,7 @@ export const createAttestationPayload = async (connection, sign) => {
|
|
|
3
3
|
const REQUEST_UNIQUE_ID_CHAR_SET = "0123456789";
|
|
4
4
|
const requestUniqueId = Array(REQUEST_UNIQUE_ID_LEN).fill(undefined).map((_) => REQUEST_UNIQUE_ID_CHAR_SET.charAt(Math.floor(Math.random() * REQUEST_UNIQUE_ID_CHAR_SET.length))).join("");
|
|
5
5
|
const slot = await connection.getSlot("finalized");
|
|
6
|
-
const block = await connection.getBlock(slot, { commitment: "finalized", maxSupportedTransactionVersion:
|
|
6
|
+
const block = await connection.getBlock(slot, { commitment: "finalized", maxSupportedTransactionVersion: 0, rewards: false, transactionDetails: "none" });
|
|
7
7
|
const attestation = {
|
|
8
8
|
slot_number: slot,
|
|
9
9
|
blockhash: block?.blockhash,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attestation.js","sourceRoot":"","sources":["../../../src/publish/attestation.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAAE,UAAsB,EAAE,IAA8B,EAAE,EAAE;IACvG,MAAM,qBAAqB,GAAG,EAAE,CAAC;IACjC,MAAM,0BAA0B,GAAG,YAAY,CAAC;IAChD,MAAM,eAAe,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC7E,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC,CACjG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAEV,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,WAAW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AAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;AAC3G,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export const createAttestationPayload = async (connection: Connection, sign: Sig
|
|
|
19
19
|
).join("")
|
|
20
20
|
|
|
21
21
|
const slot = await connection.getSlot("finalized");
|
|
22
|
-
const block = await connection.getBlock(slot, { commitment: "finalized", maxSupportedTransactionVersion:
|
|
22
|
+
const block = await connection.getBlock(slot, { commitment: "finalized", maxSupportedTransactionVersion: 0, rewards: false, transactionDetails: "none" } as GetVersionedBlockConfig);
|
|
23
23
|
|
|
24
24
|
const attestation: Attestation = {
|
|
25
25
|
slot_number: slot,
|