You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@t4ccer
Alright, I have first maybe bug. If I have
sum NftMarketplaceRedeemer = Buy | Cancel
and run it through lbf-plutus-to-plutarch and try to compile, I'll get a GHC error saying
• No instance for (Plutarch.Prelude.PlutusType
NftMarketplaceRedeemer)
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Plutarch.Show.PShow
NftMarketplaceRedeemer)
|
40 | deriving anyclass Plutarch.Show.PShow
| ^^^^^^^^^^^^^^^^^^
Of course adding derive PlutusData NftMarketplaceRedeemer fixes the issue, but I have a feeling that it should be caught before going to ghc
The text was updated successfully, but these errors were encountered:
@t4ccer
Alright, I have first maybe bug. If I have
and run it through
lbf-plutus-to-plutarch
and try to compile, I'll get a GHC error sayingOf course adding
derive PlutusData NftMarketplaceRedeemer
fixes the issue, but I have a feeling that it should be caught before going to ghcThe text was updated successfully, but these errors were encountered: