-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: add changeset for set config on all 3 mcms contracts [DPA-1392] #15684
Conversation
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.
Looks good, just few comments
AER Report: CI Core ran successfully ✅ |
if !useMCMS { | ||
_, err = deployment.ConfirmIfNoError(chain, tx, err) | ||
if err != nil { | ||
return nil, err |
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.
use something like this or this
chainlink/deployment/helpers.go
Line 90 in fd9d5de
func ParseErrorFromABI(errorString string, contractABI string) (string, error) { |
can be done in a quick follow up
chain := env.Chains[chainSelector] | ||
addrs, err := env.ExistingAddresses.AddressesForChain(chainSelector) | ||
require.NoError(t, err) | ||
require.Len(t, addrs, 6) |
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.
nit/ add comment about what the 6 contracts are for future readers
…#15684) * feat: add changeset for set config on all 3 mcms contracts * fix: use _test package and change ctx function. * fix: formatting and comments * fix: unit tests set config * fix: check different configs per role. * fix: pass context and add info logs for success
DPA-1392
Support SetConfig calls either via an mcms proposal or directly executing the transactions. The changeset will call setConfig on the proposer, bypasser and canceller mcms contract that is set on the address book for each chain provided in the config.