core icon indicating copy to clipboard operation
core copied to clipboard

[Bug] expected parentheses

Open Will-Smith11 opened this issue 2 years ago • 1 comments

Component

sol! macro

What version of Alloy are you on?

No response

Operating System

Linux

Describe the bug

image https://etherscan.io/address/0x00000000000001ad428e4906ae43d8f9852d0dd6

Will-Smith11 avatar Oct 13 '23 02:10 Will-Smith11

Might not be related, but it's very weird that the ABI internal types on that contract are enumSide instead of enum Side, or structConsiderationItem, or addresspayable.

Edit: it is related, these are the generated tokens. tuple again being parsed as the tuple type (tuple(uint, address, ...)).

interface Seaport_1_4 {
    type addresspayable is address;
    type enumBasicOrderType is uint8;
    type enumItemType is uint8;
    type enumOrderType is uint8;
    type enumSide is uint8;
    type structAdvancedOrder is tuple;
    type structBasicOrderParameters is tuple;
    type structOrder is tuple;
    type structOrderComponents is tuple;
    type structOrderParameters is tuple;
    type structReceivedItem is tuple;

    // ...
}

DaniPopes avatar Oct 15 '23 13:10 DaniPopes

Nothing we can do here, the ABI for internalTypes is malformed.

DaniPopes avatar Jan 04 '25 15:01 DaniPopes