Comments (5)
@ana-pantilie you're probably equipped best to answer this one.
from plutus.
ScriptPurpose
doesn't have an Eq
instance anymore because in the case of Proposing
scripts we would need to be able to compare Map
s, which we decided we cannot do efficiently. @zlonast can you use Foldable.find
instead?
from plutus.
Do I understand correctly that you are suggesting something like that? @ana-pantilie
{-# INLINABLE eqCredential #-}
eqCredential :: Credential -> ScriptPurpose -> Bool
eqCredential a (Rewarding b) = a PlutusTx.== b
eqCredential _ _ = Haskell.False
find (eqCredential sc) (keys $ txInfoRedeemers $ scriptContextTxInfo ctx)
from plutus.
@zlonast yes that's what I was thinking of.
from plutus.
Sounds like there's a reasonable workaround and we aren't going to do anything about the issue otherwise, hence I'm closing it. Do feel free to reopen if you feel otherwise.
from plutus.
Related Issues (20)
- Decide the fate of plutus-ghc-stub HOT 1
- Fix memory usage in metatheory
- Translation relation and decision procedure for UPLC CaseReduce
- Translation relation and decision procedure for UPLC CSE
- Translation relation and decision procedure for UPLC FloatDelay
- Translation relation and decision procedure for UPLC Inline
- Add budget for steppable-cek conformance
- Improve the documentation of Agda files involving Algorithmic part 1
- Agda Translation Relation and Decision Procedure for UPLC ForceDelay phase
- [Epic] Generate `Arbitrary` `BuiltinMeaning`s
- How should we prioritize what to work on? HOT 5
- Exponentiation primop HOT 1
- Optimize division-related Integer operations HOT 1
- Implementation of RIPEMD-160 for Plutus Core
- Add `ripemd_160` to the Plutus Core specification
- Reduce duplication in PlutusLedgerApi
- Propagate semantics variants into Plinth builtins HOT 2
- Fix metatheory/test2 HOT 2
- Suggestion for ScriptContext changes in PlutusV4 HOT 3
- TrackCosts are retained more than expected for Darwin-x86-64 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plutus.