novasamatech / nova-spektr

Nova Spektr — All-in-one Polkadot desktop wallet supporting multisigs, staking, light clients, and more
https://novaspektr.io
Apache License 2.0
38 stars 16 forks source link

Governance. Edit delegations. Extrinsics are sent one by one, not in a batch #2362

Closed stepanLav closed 5 days ago

stepanLav commented 1 week ago

Description

When user try to edit delegations it falls down with error:

CORE: submitAndWatchExtrinsic(extrinsic: Extrinsic): ExtrinsicStatus:: 1011: Unknown Transaction Validity: UnknownTransaction::NoUnsignedValidator

Example:

https://github.com/user-attachments/assets/969b4c50-7a2b-46b8-a063-afd9f5da3f84

Steps to Reproduce

  1. Delegate to someone
  2. Try to edit delegation

Expected Behavior

Can't edit delegation

Actual Behavior

Can edit delegation, in one xtrinsic should be sent utility.batch_all(undeligate(), delegate()) Example: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc-test-network-1.novasamatech.org#/extrinsics/decode/0x95028400bc74fa5a2509513a6e0263457e480fbee501c9e5d047b031b0167b756a6a24520124d05ad3a73b1a97255c3c978c8402b50477fe3d849a3cddf12b44985fd5ef7487054ab9a1130807418550de5ea8007f413d0302d6dafc7a6ce4b2bc18aa518b3501c400001002081f0200001f010000008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480000204aa9d10100000000000000000000

Environment

https://github.com/novasamatech/nova-spektr/commit/f1261cee0c3c1e45a7fa12992cd9d9ced519ef0f

stepanLav commented 5 days ago

Status verification: ✅