Skip to content

Commit

Permalink
Merge pull request #6 from DappyKit/fix/export-click-2
Browse files Browse the repository at this point in the history
fix: correct url
  • Loading branch information
IgorShadurin authored Jun 8, 2024
2 parents 7193772 + d967c1a commit 9bd2b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ ENV_TYPE=development
PUBLIC_URL=

# Clickcaster export URL
CLICKCASTER_EXPORT_URL=https://clickcaster.xyz/v1/provider/add-frame
CLICKCASTER_EXPORT_URL=https://api.clickcaster.xyz/v1/provider/add-frame
6 changes: 3 additions & 3 deletions src/scripts/export-frames-clickcaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ async function start() {
loadConfig()
const { signer, clickcasterExportUrl } = getConfigData()
const mainSigner = new Wallet(signer)

console.log('clickcasterExportUrl', clickcasterExportUrl) // eslint-disable-line no-console
const apps = await getAllApps()
console.log('Found apps:', apps.length) // eslint-disable-line no-console
for (const [index, app] of apps.entries()) {
const response = (
const response = await (
await exportFrameToClickcaster(clickcasterExportUrl, app.fid, app.frame_url, app.signer_address, mainSigner)
).json()
).text()
console.log(`[${index + 1} / ${apps.length}] Exported frame response:`, response) // eslint-disable-line no-console
}

Expand Down

0 comments on commit 9bd2b5e

Please sign in to comment.