Skip to content

Revert "Add Core interop transaction signing and WASM bindings (#1)" - #97

Merged
mihaimarcu2004 merged 1 commit into
mainfrom
revert-95-evm-core
Oct 16, 2026
Merged

mihaimarcu2004 merged 1 commit into
mainfrom
revert-95-evm-core

Conversation

@mihaimarcu2004

@mihaimarcu2004 mihaimarcu2004 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #95


Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

Comment on lines +178 to 179
if value != AttributeTypeToConfig[key].NilValue {
return false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Unknown attributes crash transaction hash aggregation

When AggregateTxHash receives an unknown attribute type, IsEmpty panics while reading its missing configuration. Previously, it treated that attribute as nonempty.

Learn more

L2TxAttributes is a public map, so callers can supply keys absent from AttributeTypeToConfig. AggregateTxHash calls IsEmpty without first calling Validate. An unknown key produces a nil config and a panic before the hash operation returns. Validate now checks all nonempty maps, but that does not protect direct calls to AggregateTxHash.

Example: Calling txtypes.L2TxAttributes{9: 0}.AggregateTxHash(hash) panics in IsEmpty; before this change, IsEmpty returned false.

Recommended fix: Restore the missing-config check in IsEmpty so invalid types remain nonempty without dereferencing nil. Keep the new Validate entry condition so Validate rejects unknown types.

Suggested change
if value != AttributeTypeToConfig[key].NilValue {
return false
config, ok := AttributeTypeToConfig[key]
if !ok || value != config.NilValue {

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@mihaimarcu2004
mihaimarcu2004 merged commit 3f2db5b into main Oct 16, 2026
3 of 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.

2 participants