Conversation
Signed-off-by: girazoki <gorka.irazoki@gmail.com>
* Add migration for ForeignAssetCreator * use accurate weight
| pallet_treasury::NegativeImbalanceOf<R>: From<NegativeImbalance<R>>, | ||
| { | ||
| // this seems to be called for substrate-based transactions | ||
| fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance<R>>) { |
There was a problem hiding this comment.
which part? I think it just made the line bigger and therefore fmt has decided to put it this way?
There was a problem hiding this comment.
it's a trait so if there is a typo, its in parity
| @@ -35,10 +37,6 @@ | |||
| { | |||
| "name": "charlie", | |||
| "validator": true | |||
There was a problem hiding this comment.
Why did we remove 4th node?
There was a problem hiding this comment.
Because we only need 3 validators in reality (actually it might have just work with 2)
There was a problem hiding this comment.
We have only dancebox + one container, so I think we can reduce it to 2. Do you want me to try this?
There was a problem hiding this comment.
Generally, I am in favor of reducing complexity of test setup. So, yeah we can reduce it to 2. But, I would suggest to do it in another PR as this PR is already too big. :)
| concrete: { | ||
| parents: 2, | ||
| interior: { Here: null }, | ||
| }, |
There was a problem hiding this comment.
Why fungible assets were removed from allowed assets?
There was a problem hiding this comment.
I think it is because now they are only identified by their Location only
There was a problem hiding this comment.
Actually I think this test was wrong before, I am not sure why it was working. According to my knowledge the right type is a multilocation. @fgamundi do you know why we put a fungible there¿?
There was a problem hiding this comment.
Not sure why fungible was there. The right type is indeed a MultiLocation (AssetId, really). Must have gotten confused with the actual XcmFragments in the test.
I just did some tests and seems like Polkadot.js just ignores any additional data that doesn't belong to the correct type, ignoring fun in this case
ParthDesai
left a comment
There was a problem hiding this comment.
Few questions. But apart from that looks good.
TODOs:
By changing the
DealWithFeesstruct (we were forced to) we now are losing the treasury.Deposit event (as we are using ResolveTo instead, something that also parity does;https://github.com/paritytech/polkadot-sdk/blob/4ab078d6754147ce731523292dd1882f8a7b5775/polkadot/runtime/common/src/impls.rs#L64. We should investigate if there is a way of maintaining still that event, although it is redundant (and always has be) because the balances.Deposit event as wellWrite migrations for pallets
ForeignAssetCreator, where we should migrate keys from V3 to V4.Include migrations to execute on xcm-executor-utils & pallet-xcm
Fix all ts tests