Skip to content

Conversation

qdm12
Copy link

@qdm12 qdm12 commented Feb 11, 2025

Why this should be merged

Allow to register body extras in consumers of libevm.

How this works

How this was tested

Existing tests modified.

@qdm12 qdm12 force-pushed the qdm12/core/types/body-hooks-rlp branch from f037b1a to 9fe07d4 Compare February 11, 2025 15:05
@qdm12 qdm12 force-pushed the qdm12/core/types/body-hooks-rlp branch 2 times, most recently from 30145a2 to 5cc4a70 Compare February 11, 2025 15:41
@qdm12 qdm12 force-pushed the qdm12/core/types/body-hooks-rlp branch from de572a1 to 99c0b34 Compare February 11, 2025 17:08
@qdm12 qdm12 force-pushed the qdm12/core/types/body-hooks-rlp branch 3 times, most recently from 3ff6b2c to 0f2b8ee Compare February 11, 2025 17:56
@qdm12 qdm12 marked this pull request as ready for review February 11, 2025 17:58
qdm12 and others added 3 commits February 12, 2025 09:26
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
@qdm12 qdm12 force-pushed the qdm12/core/types/body-hooks-rlp branch from d3fc726 to 2c46b58 Compare February 12, 2025 08:27
@qdm12 qdm12 requested a review from ARR4N February 12, 2025 08:35
ARR4N added a commit that referenced this pull request Feb 12, 2025
…types_test` (#131)

## Why this should be merged

Simplify testing in #130.

## How this works

Backwards-compatibility tests were originally created in `package
types_test` because the first one uses `ethtest` and would have caused a
circular dependency. None of the later tests have this issue so they
were moved into `package types`. The `cmpeth` test utility isn't
currently needed anywhere else so its functionality is collapsed inside
this new file.

## How this was tested

N/A as simply moving existing tests to different files.
@qdm12 qdm12 enabled auto-merge (squash) February 12, 2025 11:21
@qdm12 qdm12 requested a review from ARR4N February 12, 2025 11:21
Copy link
Collaborator

@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

LFG 🚀

Comment on lines +89 to +90
require.NoErrorf(t, err, "rlp.DecodeBytes(rlp.EncodeToBytes(%T), %T) resulted in %s",
(*withoutMethods)(body), got, pretty.Sprint(got))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
require.NoErrorf(t, err, "rlp.DecodeBytes(rlp.EncodeToBytes(%T), %T) resulted in %s",
(*withoutMethods)(body), got, pretty.Sprint(got))
require.NoErrorf(
t, err, "rlp.DecodeBytes(rlp.EncodeToBytes(%T), %T) resulted in %s",
(*withoutMethods)(body), got, pretty.Sprint(got),
)

This isn't 🐍 Python 😛

Copy link
Collaborator

Choose a reason for hiding this comment

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

Didn't see the auto merge. I'll do it in my PR.

@qdm12 qdm12 merged commit b2c38ce into main Feb 12, 2025
5 checks passed
@qdm12 qdm12 deleted the qdm12/core/types/body-hooks-rlp branch February 12, 2025 11:38
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.

2 participants