Check existential deposit when creating an account during swap#694
Check existential deposit when creating an account during swap#694dmitrylavrenov merged 11 commits intomasterfrom
Conversation
36da198 to
68a996f
Compare
MOZGIII
left a comment
There was a problem hiding this comment.
Actually, it seems we don't need to do any checks on the calls:
I am pretty sure the currency is supposed to handle that:
https://github.com/humanode-network/substrate/blob/master/frame/balances/src/lib.rs#L1501-L1563
https://github.com/humanode-network/frontier/blob/locked/polkadot-v0.9.38/frame/evm-balances/src/lib.rs#L439-L497
The question is why doesn't it work as expected?
As we don't use the actual transfer, we use default |
Ah, got it! This must be the reason it doesn't do those checks. Ok then! |
Will add some tests later. |
|
But then, if we follow the trail of calls, we invoke the |
MOZGIII
left a comment
There was a problem hiding this comment.
Hold on, we need to figure out exactly what's going on
MOZGIII
left a comment
There was a problem hiding this comment.
I think we can merge this for now, and clean up this later once we have switched to fungible traits.
Closes #692