New answers tagged

0 votes

Plutus Playground - mustPayToTheScript - unexpected char escapes - 0 converted to \NUL, 1 to \SOH

I am a bit confused about this part: "ElysiumTitan" <> id In normal Haskell id is the identity function, but I could not see how that would type check if it was. However, in this case ...
0 votes
Accepted

Plutus playground error when running simulator: WalletContractError ToCardanoError (Tag \"toCardanoPolicyId\" (Tag \"1 bytes\" DeserialisationError))

I have instead built the playground using the plutus-apps tag referenced in week 1 of the plutus-pioneer-program. This solved the issue although I do not know what the problem was with the tag I was ...
0 votes

Plutus playground error when running simulator: WalletContractError ToCardanoError (Tag \"toCardanoPolicyId\" (Tag \"1 bytes\" DeserialisationError))

You could try tkSymbol :: CurrencySymbol tkSymbol = currencySymbol "8d803516132f6fb8ddfcf168065886bf44ecc9e0023b570963b4bac8" elysiumtitan0 :: KnownCurrency elysiumtitan0 = KnownCurrency (...
0 votes

How to estimate execution steps and memory units for a Plutus script?

You can also use the build command in cardano-cli. Specify the --calculate-plutus-script-cost flag and you will get a JSON object formatted as follows: { "executionUnits": { "memory&...
  • 36
0 votes
Accepted

Convert ChainIndexTxOut to TxOutTx

Well the last error tells you that you don't have a Maybe but an Either type. You're trying to pattern match against a Maybe instead of Either at this point in your code: case txOutDatum (txOutTxOut o)...
3 votes
Accepted

Is there an equivalent of Bitcoin Script Opcodes or the EVM instruction set in Cardano

Yes, there is a lower level code that is used onchain, it is called Untyped Plutus Core (UPLC)! When validators are written in template haskell, they get compiled via 1) GHC: Haskell -> GHC Core 2) ...
  • 1,505
0 votes

How to convert Address type variable to get "addr_testXXX" format address?

You can use the function (1) in Cardano.Api, makeShelleyAddress :: NetworkId → PaymentCredential → StakeAddressReference → Address ShelleyAddr The resulting address of type Address ShelleyAddr has an ...
  • 1,505

Top 50 recent answers are included