with p2pkh, one can generate all addresses (keys) given the seed and I believe that's what wallets do when checking balance of an account (check all those keys)
But with p2sh (pay to script hash), one needs to remember/store the script and provide it when spending, otherwise bad luck. Is that right?
If so, do wallets support remembering these scripts, or how do people do that?