Remove deprecated pallet_balances's set_balance_deprecated and transfer dispatchables#1226
Conversation
pallet_balances's set_balance_deprecated and transfer dispatchables
|
The CI pipeline was cancelled due to failure one of the required jobs. |
|
Have we done an impact assessment on the removal of |
|
There's no assessment. And yes, there might be some broken frontends if their code hasn't been updated since these dispatchables have been marked as deprecated 6 months ago. |
| dest: AccountIdLookupOf<T>, | ||
| #[pallet::compact] value: T::Balance, | ||
| ) -> DispatchResult { | ||
| let source = ensure_signed(origin)?; |
There was a problem hiding this comment.
The only thing that we could do is to always return an error with a message that the other call should be used.
But its unclean i think…
There was a problem hiding this comment.
I feel like we missed an opportunity to mark this function as #[deprecated]. Maybe this would've clued people in that this extrinsic is going away...
There was a problem hiding this comment.
There was a deprecation message, tagging #[deprecated] wouldn't have helped much here anyway as external calls don't get notified of it. See #182 (comment)
|
This definitely needs to go into the change log. Lets see if that works out with the labels. |
|
@jacogr to keep you in the loop that this change is comming |
|
bot fmt |
|
@juangirini https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3588093 was started for your command Comment |
|
@juangirini Command |
* master: (24 commits) GHW for building and publishing docker images (#1391) pallet asset-conversion additional quote tests (#1371) Remove deprecated `pallet_balances`'s `set_balance_deprecated` and `transfer` dispatchables (#1226) Fix PRdoc check (#1419) Fix the wasm runtime substitute caching bug (#1416) Bump enumn from 0.1.11 to 0.1.12 (#1412) RFC 14: Improve locking mechanism for parachains (#1290) Add PRdoc check (#1408) fmt fixes (#1413) Enforce a decoding limit in MultiAssets (#1395) Remove dynamic dispatch using `Ext` (#1399) Remove redundant calls to `borrow()` (#1393) Get rid of polling in `WarpSync` (#1265) Bump actions/checkout from 3 to 4 (#1398) Bump thiserror from 1.0.47 to 1.0.48 (#1396) Move Relay-Specific Shared Code to One Place (#1193) rust docs: add simple analytics (#1377) Contracts: Update read_sandbox (#1390) Extract block announce validation from `ChainSync` (#1170) [ci] Remove runtime-benchmarks from tests (#1335) ...
|
Is this a transction_version breaking change? |
Yes, it is a |
* master: (28 commits) Adds base benchmark for do_tick in broker pallet (#1235) zombienet: use another collator image for the slashing test (#1386) Prevent a fail prdoc check to block (#1433) Fix nothing scheduled on session boundary (#1403) GHW for building and publishing docker images (#1391) pallet asset-conversion additional quote tests (#1371) Remove deprecated `pallet_balances`'s `set_balance_deprecated` and `transfer` dispatchables (#1226) Fix PRdoc check (#1419) Fix the wasm runtime substitute caching bug (#1416) Bump enumn from 0.1.11 to 0.1.12 (#1412) RFC 14: Improve locking mechanism for parachains (#1290) Add PRdoc check (#1408) fmt fixes (#1413) Enforce a decoding limit in MultiAssets (#1395) Remove dynamic dispatch using `Ext` (#1399) Remove redundant calls to `borrow()` (#1393) Get rid of polling in `WarpSync` (#1265) Bump actions/checkout from 3 to 4 (#1398) Bump thiserror from 1.0.47 to 1.0.48 (#1396) Move Relay-Specific Shared Code to One Place (#1193) ...
…ransfer` dispatchables (#1226) * remove deprecated dispatchables * update test * update tests * update tests * add prdocs * add prdoc * Update docs/prdoc/pr_1226.prdoc Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * move prdoc file --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
…ransfer` dispatchables (#1226) * remove deprecated dispatchables * update test * update tests * update tests * add prdocs * add prdoc * Update docs/prdoc/pr_1226.prdoc Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * move prdoc file --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
transfer is undefined now for some reason (reason -> paritytech/polkadot-sdk#1226) replaced with trasferKeepAlive <img width="836" alt="image" src="https://github.com/paritytech/polkadot-testnet-faucet/assets/1177472/471be755-8160-45d6-82be-2fc3e2f6f080"> The reason is valid, as `transfer` was actually `transfer_allow_death`, while we supposed to use transfer_keep_alive from the start
…ransfer` dispatchables (paritytech#1226) * remove deprecated dispatchables * update test * update tests * update tests * add prdocs * add prdoc * Update docs/prdoc/pr_1226.prdoc Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * move prdoc file --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
Fixes #147
Fixes #148
The
pallet_balancesdispatchablesset_balance_deprecatedandtransferwere deprecated in paritytech/substrate#12951 and have now been removed.Instead
force_set_balanceandtransfer_allow_deathshould be used respectively.