Merge pull request #569 from metaplex-foundation/feature/cli-cost

feat: set fixed cost per arweave file
This commit is contained in:
B 2021-10-01 05:34:41 -05:00 committed by GitHub
commit 9ca7b7bec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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({

View File

@ -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),
}),
);