Hope someone is able to help me. I’ve succeeded in creating a singleton eve coin with a custom inner puzzle inside. I’m trying to make a singleton which then recreates itself with the same puzzlehash.
This is the current (super simple) inner puzzle:
(mod ( puzzhash_tocreate ) (include condition_codes.clib) (list (list ASSERT_MY_PUZZLEHASH puzzhash_tocreate) (list Create_coin puzzhash_tocreate 1) ) )
The problem I’m having is that the spend of the eve coin passes, (as the conditions pass), but the new coin which is created does not have the same puzzlehash that I pass in to the create coin condition. I presume this is because the singleton top layer wraps this? I thought that it checked the create coin conditions to see if it was a singleton being created though? Has anyone got any thought on the correct way around this?