Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple contract code IDs in event handlers #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

justinbarry
Copy link
Contributor

Updated the SMART_ACCOUNT_CONTRACT_CODE_ID to handle multiple values by converting it into an array. Adapted event handlers to process each code ID individually, improving flexibility and extensibility in managing smart account contracts.

Updated the SMART_ACCOUNT_CONTRACT_CODE_ID to handle multiple values by converting it into an array. Adapted event handlers to process each code ID individually, improving flexibility and extensibility in managing smart account contracts.
BurntVal
BurntVal previously approved these changes Oct 4, 2024
Copy link
Contributor

@BurntVal BurntVal left a comment

Choose a reason for hiding this comment

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

LGTM

Introduced a type-safe `Network` and `Networks` structure to manage multiple network environments (testnet and mainnet). The selected network is now determined dynamically based on the `CHAIN_ID` environment variable, simplifying the configuration process and reducing hard-coded values. Added error handling for unsupported `CHAIN_ID` values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants