mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 05:37:56 +00:00
240a05a999
Three fixes for WC signing: 1. Changed optionalNamespaces to requiredNamespaces so wallet MUST approve all Pezkuwi chains (relay, asset hub, people) or reject. 2. Restored payload-based chainId in signPayload — wallet validates that WC chainId matches the transaction payload's genesisHash and rejects mismatches with "Wrong chain id passed by dApp". 3. Added session validation on restore — old sessions missing required chains are discarded, forcing a fresh session with all chains included.