-
Notifications
You must be signed in to change notification settings - Fork 25
pkg/settings: add per-chain overridable EVM.GasLimit #1757
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
Conversation
|
| } | ||
|
|
||
| func (s *SettingMap[T]) Subscribe(ctx context.Context, registry Registry) (<-chan Update[T], func()) { | ||
| //TODO subscribe to Values & Default |
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.
This can be deferred.
| SubscribeScoped(ctx context.Context, scope Scope, key string) (updates <-chan Update[string], stop func()) | ||
| } | ||
|
|
||
| //TODO use this everywhere |
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.
There should be no harm in doing this now.
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.
Ah but it would take a bit extra effort, so can defer
243d506 to
bb15e1b
Compare
| type IsSetting[T any] interface { | ||
| GetSpec() SettingSpec[T] | ||
| } |
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.
The extra indirection keeps the API compatible, where we are passing values instead of pointers.
https://smartcontract-it.atlassian.net/browse/PLEX-2367
Supports: