# Unexpected Interpreter Error - Own Datatype as Input in Wallet Function

**URL:** <https://forum.cardano.org/t/unexpected-interpreter-error-own-datatype-as-input-in-wallet-function/27815>\
**Category:** Smart Contracts\
**Tags:** plutus\
**Created:** [23 October 2019 11:15 UTC](https://forum.cardano.org/t/unexpected-interpreter-error-own-datatype-as-input-in-wallet-function/27815 "2019-10-23T11:15:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeldeOn](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/seldeon/32/14579_2.png) [@SeldeOn](https://forum.cardano.org/u/SeldeOn)\
**Post date:** [23 October 2019 11:15 UTC](https://forum.cardano.org/t/unexpected-interpreter-error-own-datatype-as-input-in-wallet-function/27815/1 "2019-10-23T11:15:59Z")

</div>

Hi,

I am a beginner in writing Plutus smart contracts and currently using online Plutus playground on testnet.

I am encountering an unexpected interpreter error when evaluating the scenario in the SIMULATION tab. What I am trying to do is to create a custom enum-like type that is available as input in a wallet function.

It could be that it is simply just because of my ignorance and in that case, I will be most grateful if someone helps and correct me.

Thanks.

Here is the code:  
[https://gist.github.com/SeldeOn/7aad2929d8a886f0afbd5c240fccddef#file-simulation-json](https://gist.github.com/SeldeOn/7aad2929d8a886f0afbd5c240fccddef#file-simulation-json)

 ![UIE](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/2X/9/93e2811b5e52d6dd0b9dd456a55dda38a6665752.png)
