mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 03:17:56 +00:00
1bedda8006
WC SignClient validates that the request chainId is in the session's approved namespaces. When the DApp browser creates a session, it may only approve the relay chain. Signing requests for Asset Hub or People Chain then fail with "Missing or invalid chainId". Fix: always use a chainId from the session's approved chains for the WC request. The wallet determines the actual signing chain from the transaction payload's genesisHash, not from the WC request chainId.