|
passert cfg "Auction has finished" $ pafter # close # common.range |
Currently, pafter will succeed when it should fail if the validity range of that end is infinite. This is due to a bug that has long gone undiscovered in Plutarch. (you can see it was addressed recently in this commit). To avoid having to update Plutarch, you can simply check that the validity range is finite.
See here for an example of how we did this with similar Plutarch version.
grabbit-smart-contracts/onchain/src/Vulcan/Onchain/Auction/Validator/Common.hs
Line 393 in fa3d77c
Currently,
pafterwill succeed when it should fail if the validity range of that end is infinite. This is due to a bug that has long gone undiscovered in Plutarch. (you can see it was addressed recently in this commit). To avoid having to update Plutarch, you can simply check that the validity range is finite.See here for an example of how we did this with similar Plutarch version.