We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
During proposal creation gov module executes proposal's content in cache-wrapped context
cacheCtx, _ := ctx.CacheContext() handler := keeper.router.GetRoute(content.ProposalRoute()) if err := handler(cacheCtx, content); err != nil { return types.Proposal{}, sdkerrors.Wrap(types.ErrInvalidProposalContent, err.Error()) }
This not cause state change but triggers hook with SendCoins in our bank's proxy module to index given address (in this case community pool spend proposal recipient). If address not already exist this will follow to panic on nil pointer on GetAccountNumber https://github.com/cybercongress/go-cyber/tree/master/x/bank/internal/keeper/index.go#L91
accNum := cbd.AccNumber(s.accountKeeper.GetAccount(ctx, addr).GetAccountNumber())
The text was updated successfully, but these errors were encountered:
cyborgshead
No branches or pull requests
During proposal creation gov module executes proposal's content in cache-wrapped context
This not cause state change but triggers hook with SendCoins in our bank's proxy module to index given address (in this case community pool spend proposal recipient).
If address not already exist this will follow to panic on nil pointer on GetAccountNumber
https://github.com/cybercongress/go-cyber/tree/master/x/bank/internal/keeper/index.go#L91
The text was updated successfully, but these errors were encountered: