Ask SPONSOR_SIGNER

This commit is contained in:
Shreyaschorge
2025-07-07 21:47:40 +05:30
parent bed12bd303
commit 1d736d823e
3 changed files with 72 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ async function loadEnvLocal() {
let newEnvContent = envContent;
for (const [key, value] of Object.entries(localEnv)) {
if (key !== 'SEED_PHRASE') {
if (key !== 'SEED_PHRASE' && key !== 'SPONSOR_SIGNER') {
// Update process.env
process.env[key] = value;
// Add to .env content if not already there
@@ -87,6 +87,9 @@ async function loadEnvLocal() {
if (localEnv.SEED_PHRASE) {
process.env.SEED_PHRASE = localEnv.SEED_PHRASE;
}
if (localEnv.SPONSOR_SIGNER) {
process.env.SPONSOR_SIGNER = localEnv.SPONSOR_SIGNER;
}
}
} catch (error) {
// Error reading .env.local, which is fine
@@ -370,6 +373,8 @@ async function main() {
[`NEYNAR_API_KEY="${process.env.NEYNAR_API_KEY}"`] : []),
...(neynarClientId ?
[`NEYNAR_CLIENT_ID="${neynarClientId}"`] : []),
...(process.env.SPONSOR_SIGNER ?
[`SPONSOR_SIGNER="${process.env.SPONSOR_SIGNER}"`] : []),
// FID (if it exists in current env)
...(process.env.FID ? [`FID="${process.env.FID}"`] : []),