Merge pull request #569 from metaplex-foundation/feature/cli-cost
feat: set fixed cost per arweave file
This commit is contained in:
commit
9ca7b7bec9
|
@ -29,7 +29,7 @@ export async function arweaveUpload(
|
|||
manifest,
|
||||
index,
|
||||
) {
|
||||
const storageCost = 10;
|
||||
const storageCost = 2300000; // 0.0023 SOL per file (paid to arweave)
|
||||
|
||||
const instructions = [
|
||||
anchor.web3.SystemProgram.transfer({
|
||||
|
|
|
@ -342,7 +342,8 @@ export const prepPayForFilesTxn = async (
|
|||
SystemProgram.transfer({
|
||||
fromPubkey: wallet.publicKey,
|
||||
toPubkey: AR_SOL_HOLDER_ID,
|
||||
lamports: await getAssetCostToStore(files),
|
||||
lamports: 2300000 // 0.0023 SOL per file (paid to arweave)
|
||||
// await getAssetCostToStore(files),
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue