-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Capability Encoder changes to use PreCodec #15538
Conversation
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
f7f36f5
to
13fed44
Compare
13fed44
to
e371b73
Compare
@@ -46,8 +48,22 @@ func NewEVMEncoder(config *values.Map) (consensustypes.Encoder, error) { | |||
return nil, err | |||
} | |||
|
|||
var subabi map[string]string | |||
err = config.Underlying[subabiConfigFieldName].UnwrapTo(subabi) |
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.
Could be shortened to:
type configStruct struct {
subapiConfigFieldName map[string]string
}
config.UnwrapTo(&configStruct{})
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.
Didn't make this change. May no longer be relevant because subabi
is optional. Check this again.
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.
+1ing but we should get Ryan or a codeowner to double check the change since I don't have much context on this.
a22b8f1
Requires
Depends on this PR being merged & then chainlink-common dependency being bumped again
Supports
Core changes for smartcontractkit/chainlink-common#961