Lack of check exist of acctAddress in mint module
Opened this issue · 2 comments
ThanhNhann commented
Background
SetupNewModuleAccount
function doesn't have a check if the acctAddress
is exist
stride/x/mint/keeper/keeper.go
Lines 233 to 242 in 94e3a91
so in some cases, we can face some problems with this, I have run simulation for this and face it
Suggested Design
- Add a check if the
acctAddress
is exist
Acceptance Criteria
- Check for existing of
acctAddress
was added - All test pass
riley-stride commented
Can you elaborate on
so in some cases, we can face some problems with this, I have run simulation for this and face it
I don't understand what will break in this case?
Also, if you are running simulation tests, could you share your code for that? We'd like to start using them.
ThanhNhann commented
Sure @riley-stride, I coding simulation test for Strid, and will update information of fail soon in the pr of this issue