mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-10-20 18:56:16 +00:00
fix: send plain SS58 address in WC signPayload instead of CAIP-10
This commit is contained in:
1 parent
c79966c192
commit
5dc4298974
1 file changed
+1
-2
@@ -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