Repository navigation
Why are ZoneInterface validator functions readonly? #610
Replies: 1 comment
|
This changed after Seaport 1.1. Zones are now called with a regular call rather than a staticcall, so they can write state. In Seaport 1.6 a restricted order's zone gets |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
As I experiment more with Seaport and Zones, I tried to create a dummy smart contract that registers some data about a trade (e.g. which
tokenIds are left to sell). Ideally, I would have done something like:but the above is not possible because Seaport calls to the Zone are readonly, so I need to do
The disadvantage is that now user interacts directly with the Zone instead of Seaport, which I would like to avoid.
Has anyone worked with a similar problem? Is there a way to make write-full calls to the Zone from Seaport? If not, what informed the design of Zones to be readonly?
Thanks for any feedback!
All reactions