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

Feat handle tx errors #8

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Feat handle tx errors #8

merged 2 commits into from
Nov 24, 2023

Conversation

bendanzhentan
Copy link
Contributor

Resolve #1 (comment)

@bendanzhentan bendanzhentan changed the base branch from main to chore-refactor-ProcessBotDelegatedWithdrawals November 23, 2023 04:49
@bendanzhentan bendanzhentan mentioned this pull request Nov 23, 2023
Closed
cmd/bot/run.go Outdated
@@ -318,3 +330,14 @@ func queryL2ScannedBlock(db *gorm.DB, cfg *core.Config) (*core.L2ScannedBlock, e
}
return &l2ScannedBlock, nil
}

// NOTE: types.L2ContractEvent.FailureReason is defined as `type:varchar(256)` in database.
Copy link
Collaborator

Choose a reason for hiding this comment

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

why don't just use text as the type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion.

Both truncating into varchar(255) and defining in text are good to me. However, text seems better. I will change to text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated at 2255cdc

Base automatically changed from chore-refactor-ProcessBotDelegatedWithdrawals to main November 24, 2023 09:25
@bendanzhentan bendanzhentan merged commit b97601d into main Nov 24, 2023
2 checks passed
@bendanzhentan bendanzhentan deleted the feat-handle-tx-errors branch November 24, 2023 09:29
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