-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manage Proxy Interface's Use of Batch Call can lead to loss of Proxy Account because of utility.batch #4237
Comments
This bug is rather severe as there is no place in the UI that it even shows you that this dialog uses a utility.batch underneath which could fail halfway through leaving the proxy in a bad state. I would propose to modify the One could also do all |
Alternatively, is there an atomic version of utility.batch in substrate that could be used instead? |
There is an atomic See the following for the detection/use of In this case, looking at the portal you posted, it seem that Centrifuge doesn't have the (It was merged into Substrate on 27 Oct, see paritytech/substrate#7188, which is post 2.0 and has not been made available as a Substrate minor yet, so I'm assuming that is why there is the on-chain functionality gap) |
Thanks for the explanation, @jacogr Does the UI default back to using |
I would propose to remove any support for |
The current planning is to remove This is basically what happens now, some functionality is hidden when e.g. All the extrinsic type detection as well as "number of arguments" for older/newer/newest adds maintenance and complexity overhead for instance we still cater for even -rc4. In 2021 the Substrate release cadence will adjust, with that in mind there will be a clear "how many version back" of Substrate the UI will support (once the regular releases are in-place) - it evolves constantly. |
Closing this on the back of #4242 which will show a warning on all non-updated chains. Both this warning or removal will both yield an immediate uptick in support and questions around where it is used, however since the specific issue is non-existent on chains following latest, hopefully this also have some benefit to drive a move closer to current. |
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. |
utility.batch is not atomic and therefore unsafe to use when updating proxy accounts.
Here's how I just lost access to an anonymous proxy I created:
Alice
asAny
Manage Proxies
on the new ProxyAlice
withAny
Alice
asNonTransfer
Bob
asAny
This results in the following batch call to be submitted which removes the
Alice
and leaves you without any owner on theProxy
: https://portal.chain.centrifuge.io/#/explorer/query/0x9188ead75407372490b7d902a0ff7fbd23f82d29c1f4a3a22b70531df6cd73c7The text was updated successfully, but these errors were encountered: