transfer to a contract & minted to p2pkh
Closed this issue · 3 comments
All our existing examples mint an ordinal to a contract and transfer it by calling the contract. There are cases where the ordinal is minted regularly to a p2pkh, it gets transferred to a contract some time later and needs to be unlocked. Add these examples for FT & NFT.
Basically do the 2*2 table, but for transfer in 3rd dimension https://github.com/sCrypt-Inc/services/issues/151.
Does this case depend on previous case?
If yes, put them together. Otherwise it fails if run individually.
Basically we test a NFT from p2pkh -> hashpuzzle -> p2pkh again.
Same for https://github.com/sCrypt-Inc/scrypt-ord/blob/master/tests/specs/send2hashPuzzleNFT.spec.ts#L67 and https://github.com/sCrypt-Inc/scrypt-ord/blob/master/tests/specs/send2hashPuzzleNFT.spec.ts#L116
Change the same for FT version https://github.com/sCrypt-Inc/scrypt-ord/blob/master/tests/specs/send2hashPuzzleFT.spec.ts.
Add a longer chain of transfers, e.g.,
p2pkh -> hashpuzzle -> counter -> hashpuzzle -> p2pkh.