@solana-mobile/dapp-store-publishing-tools 0.6.0 → 0.7.1
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/lib/CoreUtils.js +7 -0
- package/package.json +1 -1
- package/src/CoreUtils.ts +8 -0
package/lib/CoreUtils.js
CHANGED
|
@@ -179,6 +179,7 @@ function _ts_generator(thisArg, body) {
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
import { ComputeBudgetProgram } from "@solana/web3.js";
|
|
182
183
|
export var Constants = function Constants() {
|
|
183
184
|
"use strict";
|
|
184
185
|
_class_call_check(this, Constants);
|
|
@@ -213,6 +214,12 @@ export var mintNft = function() {
|
|
|
213
214
|
];
|
|
214
215
|
case 2:
|
|
215
216
|
txBuilder = _state.sent();
|
|
217
|
+
txBuilder.prepend({
|
|
218
|
+
instruction: ComputeBudgetProgram.setComputeUnitPrice({
|
|
219
|
+
microLamports: 5000
|
|
220
|
+
}),
|
|
221
|
+
signers: []
|
|
222
|
+
});
|
|
216
223
|
return [
|
|
217
224
|
2,
|
|
218
225
|
txBuilder
|
package/package.json
CHANGED
package/src/CoreUtils.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
MetaplexFile,
|
|
6
6
|
TransactionBuilder,
|
|
7
7
|
} from "@metaplex-foundation/js";
|
|
8
|
+
import { ComputeBudgetProgram } from "@solana/web3.js";
|
|
8
9
|
|
|
9
10
|
export class Constants {
|
|
10
11
|
static PUBLISHING_SCHEMA_VER = "0.2.6";
|
|
@@ -39,5 +40,12 @@ export const mintNft = async (
|
|
|
39
40
|
sellerFeeBasisPoints: 0,
|
|
40
41
|
});
|
|
41
42
|
|
|
43
|
+
txBuilder.prepend({
|
|
44
|
+
instruction: ComputeBudgetProgram.setComputeUnitPrice({
|
|
45
|
+
microLamports: 5000,
|
|
46
|
+
}),
|
|
47
|
+
signers: [],
|
|
48
|
+
});
|
|
49
|
+
|
|
42
50
|
return txBuilder;
|
|
43
51
|
};
|