mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 02:07:55 +00:00
fix: send plain SS58 address in WC signPayload instead of CAIP-10
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user