Skip to content

Commit

Permalink
do not do validate on init
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jul 31, 2024
1 parent c077988 commit 313f9eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ func NewSimApp(
signingCtx := interfaceRegistry.SigningContext()
txConfig := authtx.NewTxConfig(appCodec, signingCtx.AddressCodec(), signingCtx.ValidatorAddressCodec(), authtx.DefaultSignModes)

if err := signingCtx.Validate(); err != nil {
panic(err)
}

std.RegisterLegacyAminoCodec(legacyAmino)
std.RegisterInterfaces(interfaceRegistry)

Expand Down
4 changes: 0 additions & 4 deletions x/tx/signing/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ func NewContext(options Options) (*Context, error) {
maxRecursionDepth: options.MaxRecursionDepth,
}

if err := c.Validate(); err != nil {
return nil, err
}

return c, nil
}

Expand Down

0 comments on commit 313f9eb

Please sign in to comment.