I have this function that I use to get contract specs, but sometimes it get's called with the contract ID for a SAC instance. I'm not super sure, but I think this fails because SAC instances don't have ledger entries for contract data in the same way as a sep41 token that is not a SAC.
Can anyone confirm that's correct and/or how to get contract spec when the contract can be either a SAC instance of a sep41 token?