stacks-blockchain-api icon indicating copy to clipboard operation
stacks-blockchain-api copied to clipboard

`/extended/v1/contract/{name}` should return data from successful tx

Open zone117x opened this issue 1 year ago • 0 comments

This endpoint needs to consider the case when a contract was deployed in multiple txs: https://api.testnet.hiro.so/extended/v1/contract/ST1GJSC4GG3MDA1KYZJYS9FEVCKHASR1N714NKTHR.univ2-router

Right now, it's returning data from a failed tx: https://api.testnet.hiro.so/extended/v1/tx/0xab9de1ca7f6376eeb0f9df93b679396f0fc3b0a8ae84026cf4369f51c520c4c4

But it should find the successful tx instead: https://api.testnet.hiro.so/extended/v1/tx/0xabd8a9f1a06e9e52e7b033cc96c643198e2751496ffd49e4715dc83175f4a7b3

zone117x avatar Oct 16 '24 10:10 zone117x