-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
c463328
to
17ef561
Compare
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated at 2255cdc
17ef561
to
2255cdc
Compare
Resolve #1 (comment)