mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-13 20:21:01 +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.
|
// Always use a chainId approved in the WC session for protocol compliance.
|
||||||
// The wallet determines actual signing chain from the payload's genesisHash.
|
// The wallet determines actual signing chain from the payload's genesisHash.
|
||||||
const chainId = getApprovedChainId(defaultChainId);
|
const chainId = getApprovedChainId(defaultChainId);
|
||||||
const wcAccount = `polkadot:${chainId.split(':')[1]}:${address}`;
|
|
||||||
|
|
||||||
const id = ++requestId;
|
const id = ++requestId;
|
||||||
|
|
||||||
@@ -252,7 +251,7 @@ export function createWCSigner(defaultGenesisHash: string, address: string) {
|
|||||||
request: {
|
request: {
|
||||||
method: 'polkadot_signTransaction',
|
method: 'polkadot_signTransaction',
|
||||||
params: {
|
params: {
|
||||||
address: wcAccount,
|
address: address,
|
||||||
transactionPayload: payload,
|
transactionPayload: payload,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user