Skip to content

feat: helper scripts to debug validation allow list#461

Merged
cpb8010 merged 1 commit intomainfrom
debug-upgrade
Sep 10, 2025
Merged

feat: helper scripts to debug validation allow list#461
cpb8010 merged 1 commit intomainfrom
debug-upgrade

Conversation

@cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Sep 4, 2025

Description

scripts to debug contract upgrade and deployment

Additional context

Trying to figure out why all accounts are getting validation failures

The upgrade went badly because it wasn't saving the SSO beacon to the
upgrade file, so a new beacon was deployed and used in the factory.
The new beacon wasn't in the validation allow list, so any transactions
using the proxy failed which means all accounts deployed via that
factory were bad.

Upgrading the factory helps, but we also need to upgrade the sso account
beacon to the latest implemention. This can't fix existing accounts,
but can work for new accounts.

The factory upgrade might not have worked, so we need to deploy another
paymaster to go with a new factory that deploys the allowed SSO beacon
address.

What a mess and I still can't get it working in PR...
@cpb8010 cpb8010 self-assigned this Sep 4, 2025
@cpb8010 cpb8010 requested review from Copilot and ly0va September 4, 2025 05:28
@cpb8010 cpb8010 added the documentation Improvements or additions to documentation label Sep 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds helper scripts to debug validation allowlist issues, specifically to troubleshoot why accounts are getting validation failures in contract upgrades and deployments.

  • Introduces debugging scripts for paymaster and factory contract verification
  • Provides tools to check beacon versions, proxy configurations, and deployment mismatches
  • Adds utilities to deploy new contracts with proper configurations and sync beacon implementations

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
scripts/verify-paymaster-factory.ts Verifies paymaster compatibility with factory addresses and modules
scripts/upgrade-factory-beacon.ts Attempts factory beacon upgrades (identifies immutable beacon limitation)
scripts/sync-beacon-implementations.ts Synchronizes beacon implementations between different beacons
scripts/fund-paymaster.ts Sends ETH to paymaster contracts for funding
scripts/deploy-new-paymaster.ts Deploys new paymasters with specified factory and module configurations
scripts/deploy-new-factory.ts Deploys new factories pointing to specified beacons
scripts/debug-paymaster-error.ts Debugs paymaster rejection issues with detailed analysis
scripts/check-factory-proxy-type.ts Analyzes factory proxy type and admin configuration
scripts/check-deployment-mismatch.ts Identifies mismatches between expected and actual beacon addresses
scripts/check-beacon-versions.ts Checks beacon versions and proxy contract configurations
hardhat.config.ts Imports all new debugging scripts into Hardhat configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cpb8010 cpb8010 enabled auto-merge (squash) September 4, 2025 14:55
@cpb8010 cpb8010 merged commit 5c7cffc into main Sep 10, 2025
7 checks passed
@cpb8010 cpb8010 deleted the debug-upgrade branch September 10, 2025 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants