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

TD-1526: add support for EIP-712 bulk listing types #2

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

mdymalla
Copy link

Bulk listing types can reference a tree structure from the primary type in the EIP-712 object, this currently works out of the box in typescript and the SDK however fails in go-ethereum. This package currently does not allow for types to be declared as fixed-sized arrays, so when a bulk listing tree structure is declared, e.g. OrderComponents[2][2] validation will fail. This change adds fixed-size arrays to be expected along with already supported dynamic arrays.

Seaport ref for bulk order structure - https://github.com/ProjectOpenSea/seaport/blob/main/docs/SeaportDocumentation.md#bulk-order-signing-and-structure

@mdymalla mdymalla force-pushed the master branch 3 times, most recently from 0967ace to 7a2cd00 Compare July 17, 2024 04:29
Copy link

@naveen-imtb naveen-imtb left a comment

Choose a reason for hiding this comment

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

Looking good, left a nit.

@@ -216,8 +216,9 @@ func (t *Type) isArray() bool {
// typeName returns the canonical name of the type. If the type is 'Person[]', then

Choose a reason for hiding this comment

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

@mdymalla nit: update comment to reflect fixed size arrays.

@jasonzwli jasonzwli merged commit 7fe4ee0 into jasonzwli:master Jul 25, 2024
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.

4 participants