For txwrapper-polkadot: As logic becomes more specialized I think we can code in some helpful warnings. For example, if Statemint is the only chain with pallet-assets, and a governance chain is the only one with pallet-democracy, we can hardcode those genesis hashes into txwrapper-polkadot and log a warning if someone builds a tx with the genesis hash of the wrong chain. Will also be an indicator that you are probably fetching version info from the wrong node.
Originally posted by @joepetrowski in #75 (comment)
For txwrapper-polkadot: As logic becomes more specialized I think we can code in some helpful warnings. For example, if Statemint is the only chain with
pallet-assets, and a governance chain is the only one withpallet-democracy, we can hardcode those genesis hashes intotxwrapper-polkadotand log a warning if someone builds a tx with the genesis hash of the wrong chain. Will also be an indicator that you are probably fetching version info from the wrong node.Originally posted by @joepetrowski in #75 (comment)