Open lfjigu opened 2 years ago
@lfjigu in utils/update_info.js
~line 26:
https://github.com/HashLips/hashlips_art_engine/blob/d8ee279043d2d4a8de3bdfac0d89d0e966fb04a2/utils/update_info.js#L26-L27
You can insert the line:
delete item.attributes;
@bolshoytoster where did you excatly put the code may i have example i tried out putting after line 26 it did not worked thanks
@funnyleopard you put it between line 26 and 27 by creating a new line there.
Make sure you save files when you change them.
You also need to run node utils/update_info.js
to actually run it
@funnyleopard you put it between line 26 and 27 by creating a new line there.
Make sure you save files when you change them.
You also need to run
node utils/update_info.js
to actually run it
well it didn't worked for me
@AshutoshSingh72 could you give any more information? Was there an error or did it just not remove the attributes
field?
@AshutoshSingh72 could you give any more information? Was there an error or did it just not remove the
attributes
field? I entered this but didn't worked
item.name = ${namePrefix} #${item.edition}
;
item.description = description;
item.image = ${baseUri}/${item.edition}.png
;
}
delete item.attributes;
fs.writeFileSync(
${basePath}/build/json/${item.edition}.json
,
JSON.stringify(item, null, 2)
);
});
is this in correct format
@AshutoshSingh72 could you give any more information? Was there an error or did it just not remove the
attributes
field?
Thanks buddy it worked for me thank you so much i will also support people like you did i was trying to change nft metadata while generating them but then i realised that once i generate them and then when i run node utils/update_info.js after saving the file it actually edits the metadata which was generated Thanks 😃😃😃😃😃😍😍😍😉😉
how can I create nfts without attributes? I don't want the layers and I already have 1000 images.
I need to make the .json files looks like this:
{ "dna":"1", "name":"my nfts", "external_url":"https://www.mynfts.com", "description":"my nfts", "image":"ipfs://URL" }
how can I modify the code to achieve this?
Thank you for your answering.