apps icon indicating copy to clipboard operation
apps copied to clipboard

Allow signing from any account once in "Local Fork More" (Chopsticks pt2)

Open kianenigma opened this issue 5 months ago • 2 comments

What would be very useful is to also provide an easier way to fake any account once you click into that button. I am looking into the code to see if the CS instance is executed with mock-signature-host or not, but even if yes, atm I need to hack my way around. Ideally, the UI would facilitate this and allow you to:

  1. Add any account you wish merely by the public key
  2. (fake) Sign with all of your accounts.

Without too much manual work needed.

Originally posted by @kianenigma in https://github.com/polkadot-js/apps/issues/9903#issuecomment-1978555648

kianenigma avatar Mar 05 '24 11:03 kianenigma

@qiweiii Is this currently achievable with our current setup?

TarikGul avatar Mar 05 '24 20:03 TarikGul

Yes, this should be achievable with

https://github.com/polkadot-js/apps/blob/53a178e7fcbafae6fc6f416437cc4caa4af821c1/packages/react-api/src/Api.tsx#L243

we can setStorage for all accounts by default

qiweiii avatar Mar 06 '24 02:03 qiweiii

@TarikGul Where do you think we should place this feature, I'm thinking maybe add an input field in Accounts page, or maybe expose the chopsticks fork and its methods in JS page if possible

qiweiii avatar Mar 08 '24 06:03 qiweiii

I'm thinking maybe add an input field in Accounts page

Yea this makes sense. The inpute field would only be visible if the Local Fork is active right?

TarikGul avatar Mar 08 '24 13:03 TarikGul

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

polkadot-js-bot avatar Apr 18 '24 02:04 polkadot-js-bot