mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
Force old deletions
This commit is contained in:
parent
908a55fe35
commit
83018a1a7c
@ -84,7 +84,7 @@ async function generateRocketeer( id, network='mainnet' ) {
|
|||||||
rocketeer.attributes.push( {
|
rocketeer.attributes.push( {
|
||||||
"display_type": "date",
|
"display_type": "date",
|
||||||
"trait_type": "birthday",
|
"trait_type": "birthday",
|
||||||
"value": Date.now() / 1000
|
"value": Math.floor( Date.now() / 1000 )
|
||||||
} )
|
} )
|
||||||
|
|
||||||
// Special editions
|
// Special editions
|
||||||
|
@ -128,18 +128,22 @@ module.exports = async function svgFromAttributes( attributes=[], path='' ) {
|
|||||||
|
|
||||||
// Make file reference
|
// Make file reference
|
||||||
const svgFile = bucket.file( `${path}.svg` )
|
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
|
// Save files
|
||||||
await svgFile.save( bakedSvg )
|
await svgFile.save( bakedSvg )
|
||||||
await resterFile.save( bakedRaster )
|
await rasterFile.save( bakedRaster )
|
||||||
|
|
||||||
// Make file public
|
// Make file public
|
||||||
await svgFile.makePublic( )
|
await svgFile.makePublic( )
|
||||||
await resterFile.makePublic( )
|
await rasterFile.makePublic( )
|
||||||
|
|
||||||
// Return public url
|
// Return public url
|
||||||
return resterFile.publicUrl()
|
return rasterFile.publicUrl()
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -77,7 +77,6 @@ module.exports = {
|
|||||||
// return new HDWalletProvider(MNEMONIC, rinkebyNodeUrl);
|
// return new HDWalletProvider(MNEMONIC, rinkebyNodeUrl);
|
||||||
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
|
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
|
||||||
},
|
},
|
||||||
gas: 29999944, // very very high
|
|
||||||
network_id: 4,
|
network_id: 4,
|
||||||
},
|
},
|
||||||
live: {
|
live: {
|
||||||
@ -86,7 +85,7 @@ module.exports = {
|
|||||||
// return new HDWalletProvider(MNEMONIC, mainnetNodeUrl);
|
// return new HDWalletProvider(MNEMONIC, mainnetNodeUrl);
|
||||||
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
|
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
|
||||||
},
|
},
|
||||||
gas: 5000000,
|
// gas: 5000000,
|
||||||
gasPrice: 5000000000,
|
gasPrice: 5000000000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user