Add missing on_created_account logic usage for inc_account_nonce at pallet-evm-system#147
Conversation
6249797 to
fd46302
Compare
fd46302 to
3619584
Compare
|
This looks like a valid mode of operation - however, does it mirror what the frame system does? I assume so, as I don't see otherwise how you'd get the idea to do this. This is a great work! |
Not exactly, it doesn't mirror what the frame system does (https://github.com/paritytech/substrate/blob/033d4e86cc7eff0066cd376b9375f815761d653c/frame/system/src/lib.rs#L1595). The needs of it have been discovered during nonce increasing usage investigation at |
|
The same is at
@MOZGIII Should we propose changes for Or it should be allowed to increase nonces as it doesn't related to general account existence (just a question). But on the other hand, the account itself is added to the state: so, we need to submit event about it at least... |
|
I'm thinking it should be covered, maybe, by the implementation of the This is really unfortunate the whole system is designed like a single flat list of calls, and there's no telling where acertain functionality would go at the type system layer. Would be nice if there were some layers added in there, with wrapper types... But this is something to propose as a broad design philosophy change to the upstream devs at parity. |
|
To reiterate: no doubt we need to fix this event, but the |
|
Thanks for all your thoughts, share your point of view. But, I guess, it needs more time and research to propose some good philosophy change to the upstream devs at parity via possible I've double-checked all possible account mutation and creation at the current our simplified As a result, we can merge this PR, I think. |
This
Is not related to this. Doing things via |
Not all possible cases though. |
Discovered during work on #140