Skip to content

Commit

Permalink
Remove create projects file (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
cynsupercat authored Jan 17, 2024
1 parent 01a7bc4 commit 8e8573f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 53 deletions.
48 changes: 0 additions & 48 deletions src/onboarding/2-create-project.ts

This file was deleted.

7 changes: 2 additions & 5 deletions src/onboarding/3-create-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const component = '[IMX-CREATE-COLLECTION]';
'COLLECTION_CONTRACT_ADDRESS',
);
const projectId = requireEnvironmentVariable('COLLECTION_PROJECT_ID');
const apiKey = requireEnvironmentVariable('API_KEY');

const wallet = new Wallet(privateKey);
const signer = wallet.connect(provider);
Expand Down Expand Up @@ -50,13 +51,9 @@ const component = '[IMX-CREATE-COLLECTION]';
'Content-type': 'application/json',
'IMX-Signature': signature,
'IMX-Timestamp': timestamp,
'x-immutable-api-key': apiKey,
};

const apiKey = getEnv('API_KEY');
if (apiKey) {
headers['x-immutable-api-key'] = apiKey;
}

const resp = await axios.post(
`${getEnv('PUBLIC_API_URL')}/collections`,
createCollectionRequest,
Expand Down

0 comments on commit 8e8573f

Please sign in to comment.