Update auction validator examples to use Plutus Core version 1.1.0 and fix V3 API imports #7274
+23
−20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The auction validator examples in
doc/docusaurus/static/code/
were using outdated Plutus Core version 1.0.0 and had inconsistent API imports that caused build errors in the docusaurus-examples project. According to the Plutus documentation, PlutusV3 validators should use Plutus Core version 1.1.0.Changes Made
AuctionMintingPolicy.hs:
1.0.0
to1.1.0
PlutusLedgerApi.V2
toPlutusLedgerApi.V3
plcVersion100
toplcVersion110
liftCode
call to useplcVersion110
AuctionValidator.hs:
target-version=1.1.0
pragma (was missing before)lovelaceValueOf
andvalueOf
imports to usePlutusLedgerApi.V3
toPubKeyHash
import fromPlutusLedgerApi.V1.Address
(not re-exported in V3)contains
import fromPlutusLedgerApi.V1.Interval
(not re-exported in V3)Build Error Resolution
The original code was mixing V1 and V3 API imports inconsistently, which caused compilation failures in the docusaurus-examples project. The fix ensures that:
These reference implementations now serve as proper modern templates that align with current Plutus development best practices and build successfully.
Fixes #7273.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.