Skip to content

Commit

Permalink
chore: add warn on secure site url change (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaisailovic authored Mar 4, 2024
1 parent abf2910 commit ef7a775
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,19 @@ function checkSdkVersion() {
}
checkSdkVersion()

// -- Check wallet ------------------------------------------------------------

async function checkWallet() {
const wallet_files = modified_files.filter(f => f.includes('/wallet/'))
for (const f of wallet_files) {
const diff = await diffForFile(f)
if (f.includes('W3mFrameConstants') && diff?.added.includes('SECURE_SITE_SDK')) {
warn('Secure site URL has been changed')
}
}
}

checkWallet()
// -- Check left over development constants ---------------------------------------
async function checkDevelopmentConstants() {
for (const f of updated_files) {
Expand Down

0 comments on commit ef7a775

Please sign in to comment.