Force old deletions

This commit is contained in:
Mentor Palokaj 2021-10-30 13:52:37 +02:00
parent 908a55fe35
commit 83018a1a7c
3 changed files with 10 additions and 7 deletions

View File

@ -84,7 +84,7 @@ async function generateRocketeer( id, network='mainnet' ) {
rocketeer.attributes.push( {
"display_type": "date",
"trait_type": "birthday",
"value": Date.now() / 1000
"value": Math.floor( Date.now() / 1000 )
} )
// Special editions

View File

@ -128,18 +128,22 @@ module.exports = async function svgFromAttributes( attributes=[], path='' ) {
// Make file reference
const svgFile = bucket.file( `${path}.svg` )
const resterFile = bucket.file( `${path}.jpg` )
const rasterFile = bucket.file( `${path}.jpg` )
// Delete testnet file if it already exists
await svgFile.delete().catch( f => 'this is fine' )
await rasterFile.delete().catch( f => 'this is fine' )
// Save files
await svgFile.save( bakedSvg )
await resterFile.save( bakedRaster )
await rasterFile.save( bakedRaster )
// Make file public
await svgFile.makePublic( )
await resterFile.makePublic( )
await rasterFile.makePublic( )
// Return public url
return resterFile.publicUrl()
return rasterFile.publicUrl()
}

View File

@ -77,7 +77,6 @@ module.exports = {
// return new HDWalletProvider(MNEMONIC, rinkebyNodeUrl);
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
},
gas: 29999944, // very very high
network_id: 4,
},
live: {
@ -86,7 +85,7 @@ module.exports = {
// return new HDWalletProvider(MNEMONIC, mainnetNodeUrl);
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
},
gas: 5000000,
// gas: 5000000,
gasPrice: 5000000000,
},
},