Skip to content
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

cleanup indexer transform function #1226

Merged
merged 8 commits into from
Sep 19, 2024

Conversation

cwastche
Copy link
Contributor

Time spent on this PR: 2h30

Resolves: #1187

Pull Request type

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing

What is the new behavior?

  • Changed return statements to array filters
  • Moved object mutations from map to forEach

Does this introduce a breaking change?

  • Yes
  • No

indexer/src/main.ts Outdated Show resolved Hide resolved
indexer/src/main.ts Outdated Show resolved Hide resolved
indexer/src/main.ts Outdated Show resolved Hide resolved
indexer/src/main.ts Outdated Show resolved Hide resolved
@tcoratger
Copy link
Collaborator

Hey @cwastche can you have a look at the failing tests?

@cwastche
Copy link
Contributor Author

Fixed typing issues, tests seem to pass when ran locally

indexer/src/main.ts Outdated Show resolved Hide resolved
indexer/src/main.ts Outdated Show resolved Hide resolved
anukkrit149 pushed a commit to karnotxyz/kakarot-rpc that referenced this pull request Aug 9, 2024
<!--- Please provide a general summary of your changes in the title
above -->

<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days?  -->

Time spent on this PR:

## Pull request type

<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying,
or link to a relevant issue. -->

Resolves #<Issue number>

## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by
this PR. -->

- fixes an issue with messaging tests when kakarot was re-deployed,
causing a mismatch between the l1messaging kakarot address and the
actual one. We can simply remove this cache mechanism as re-deploying it
for each test is not an issue.
-
-

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1226)
<!-- Reviewable:end -->
indexer/src/main.ts Outdated Show resolved Hide resolved
indexer/src/main.ts Outdated Show resolved Hide resolved
indexer/src/main.ts Outdated Show resolved Hide resolved
@ClementWalter ClementWalter enabled auto-merge (squash) September 16, 2024 09:39
@eugypalu eugypalu force-pushed the refactor-transform branch 2 times, most recently from 52c4706 to 0eb7fbd Compare September 19, 2024 07:47
@ClementWalter ClementWalter merged commit 4f67743 into kkrt-labs:main Sep 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dev: cleanup indexer transform function
4 participants