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

SHARD-1708: Add network account listOfChanges update script #126

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

S0naliThakur
Copy link
Member

Linear: https://linear.app/shm/issue/SHARD-1708
Summary: Add network account listOfChanges update script

}

// Utility function to validate and parse input based on expected type
const parseInput = (value: string, expectedType: string, defaultValue: any): any => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure how I feel about assigning a defaultValue. If we're using this code to overwrite the network account, I somewhat feel that there should only be intentional and explicit changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Clarifying... the question is should we treat the results differently if we ended up with value or defaultValue?

console.log('❌ Changes were not applied.')
}

await dbstore.closeDatabase()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have a try/finally setup here to ensure DB closure?

urnotsam
urnotsam previously approved these changes Jan 13, 2025
@justin-shardeum justin-shardeum dismissed urnotsam’s stale review January 13, 2025 20:38

He approved by accident

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.

3 participants