-
Notifications
You must be signed in to change notification settings - Fork 72
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
refactor(toolbox): addAggregator immutable args #1195
Conversation
await runUpdate('updateAggregator', [input, output, aggregator], args); | ||
assert(aggregatorAddress); | ||
|
||
await runUpdate('updateAggregator', [inputAddress, outputAddress, aggregatorAddress], args); |
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.
It's now easier to understand what we are passing by to the next function: addresses.
let { input, output, aggregator } = args; | ||
const { input, output, aggregator: aggregatorArg } = args; |
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 is the main change
Co-authored-by: MantisClone <david.huntmateo@request.network>
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.
it is straightforward now! :)
Description of the changes
This is a follow-up to @olivier7delf 's comment (here) on #1134
This makes the args immutable (replaced
let
byconst
) and variable manipulations a bit clearer.