diff --git a/functions/index.js b/functions/index.js index 032ba26..abff93c 100644 --- a/functions/index.js +++ b/functions/index.js @@ -5,7 +5,7 @@ const mainnetAPI = require( './endpoints/mainnet' ) // Runtime config const runtime = { timeoutSeconds: 540, - memory: '4GB' + memory: '512MB' } // Testnet endpoint diff --git a/minter/src/components/organisms/Outfits.js b/minter/src/components/organisms/Outfits.js index 9e87ba5..9eecbe9 100644 --- a/minter/src/components/organisms/Outfits.js +++ b/minter/src/components/organisms/Outfits.js @@ -76,50 +76,50 @@ export default function Verifier() { } - async function generateNewOutfit( ) { + // async function generateNewOutfit( ) { - try { + // try { - log( `Generating new outfit for #${ rocketeerId }` ) - setLoading( `Generating new outfit for #${ rocketeerId }` ) - alert( 'You will be prompted to sign a message, this is NOT a transaction' ) + // log( `Generating new outfit for #${ rocketeerId }` ) + // setLoading( `Generating new outfit for #${ rocketeerId }` ) + // alert( 'You will be prompted to sign a message, this is NOT a transaction' ) - const signature = await sign( JSON.stringify( { - signer: address.toLowerCase(), - rocketeerId, - chainId, - } ), address ) + // const signature = await sign( JSON.stringify( { + // signer: address.toLowerCase(), + // rocketeerId, + // chainId, + // } ), address ) - log( 'Making request with ', signature ) + // log( 'Making request with ', signature ) - setLoading( 'Generating new outfit, this can take a minute' ) + // setLoading( 'Generating new outfit, this can take a minute' ) - const { error, success } = await callApi( `/rocketeer/${ rocketeerId }/outfits`, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify( signature ) - } ) + // const { error, success } = await callApi( `/rocketeer/${ rocketeerId }/outfits`, { + // method: 'POST', + // headers: { 'Content-Type': 'application/json' }, + // body: JSON.stringify( signature ) + // } ) - if( error ) throw new Error( error ) + // if( error ) throw new Error( error ) - alert( `Success! Outfit generated.` ) - window?.location.reload() + // alert( `Success! Outfit generated.` ) + // window?.location.reload() - } catch( e ) { + // } catch( e ) { - log( e ) - alert( e.message ) + // log( e ) + // alert( e.message ) - } finally { + // } finally { - setLoading( false ) + // setLoading( false ) - } + // } - } + // } - async function generateByAddress( ) { + async function generateByAddress() { try { @@ -230,7 +230,7 @@ export default function Verifier() {

{ rocketeer.name }

- { rocketeer.new_outfit_available ? : New outfit available on { rocketeer.when_new_outfit.toString() } } + { rocketeer.new_outfit_available ? : New outfit available on { rocketeer.when_new_outfit.toString() } }