Skip to content

Commit

Permalink
refactor(depinject): simplify unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2d3c committed Feb 25, 2024
1 parent 7c05f41 commit c226765
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x/auth/tx/config/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ func ProvideModule(in ModuleInputs) ModuleOutputs {
CustomSignModes: customSignModeHandlers,
}

if in.CustomGetSigners != nil {
for _, mode := range in.CustomGetSigners {
txConfigOptions.SigningOptions.CustomGetSigners[mode.MsgType] = mode.Fn
}
for _, mode := range in.CustomGetSigners {
txConfigOptions.SigningOptions.CustomGetSigners[mode.MsgType] = mode.Fn
}

// enable SIGN_MODE_TEXTUAL only if bank keeper is available
Expand Down

0 comments on commit c226765

Please sign in to comment.