Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

449 update single beacon without multicall #471

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

acenolaza
Copy link
Contributor

Closes #449

@acenolaza acenolaza self-assigned this Sep 4, 2023
@acenolaza acenolaza force-pushed the 449-update-single-beacon-without-multicall branch from 1b52893 to e1aa4af Compare September 4, 2023 20:37
Copy link
Contributor

@bdrhn9 bdrhn9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, sorry for late review. I locally tested carefully, it works as expected. LGTM 👍🏼

() =>
contract
.connect(voidSigner)
.callStatic.tryMulticall(readBatch.map((beaconUpdate) => beaconUpdate.dataFeedsCalldata)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nit. However it'd be better to not to use multicall while reading if batch only includes 1 beacon. To merge this PR quick, I created the issue #475.

@acenolaza acenolaza merged commit 480438c into main Sep 18, 2023
10 checks passed
@acenolaza acenolaza deleted the 449-update-single-beacon-without-multicall branch September 18, 2023 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not use multicall for individual Beacon updates
2 participants