fix: send plain SS58 address in WC signPayload instead of CAIP-10

This commit is contained in:
2026-02-24 22:10:46 +03:00
parent 54c70afe4b
commit 4eec8d5948
+1 -2
View File
@@ -242,7 +242,6 @@ export function createWCSigner(defaultGenesisHash: string, address: string) {
// Always use a chainId approved in the WC session for protocol compliance.
// The wallet determines actual signing chain from the payload's genesisHash.
const chainId = getApprovedChainId(defaultChainId);
const wcAccount = `polkadot:${chainId.split(':')[1]}:${address}`;
const id = ++requestId;
@@ -252,7 +251,7 @@ export function createWCSigner(defaultGenesisHash: string, address: string) {
request: {
method: 'polkadot_signTransaction',
params: {
address: wcAccount,
address: address,
transactionPayload: payload,
},
},