Skip to content

Commit

Permalink
chore(simapp): audit (backport #16914) (#16922)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
mergify[bot] and julienrbrt authored Jul 11, 2023
1 parent bf24d36 commit e292bda
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 460 deletions.
30 changes: 0 additions & 30 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,36 +130,6 @@ var (
_ servertypes.Application = (*SimApp)(nil)
)

// stdAccAddressCodec is a temporary address codec that we will use until we
// can populate it with the correct bech32 prefixes without depending on the global.
type stdAccAddressCodec struct{}

func (g stdAccAddressCodec) StringToBytes(text string) ([]byte, error) {
if text == "" {
return nil, nil
}
return sdk.AccAddressFromBech32(text)
}

func (g stdAccAddressCodec) BytesToString(bz []byte) (string, error) {
if bz == nil {
return "", nil
}
return sdk.AccAddress(bz).String(), nil
}

// stdValAddressCodec is a temporary address codec that we will use until we
// can populate it with the correct bech32 prefixes without depending on the global.
type stdValAddressCodec struct{}

func (g stdValAddressCodec) StringToBytes(text string) ([]byte, error) {
return sdk.ValAddressFromBech32(text)
}

func (g stdValAddressCodec) BytesToString(bz []byte) (string, error) {
return sdk.ValAddress(bz).String(), nil
}

// SimApp extends an ABCI application, but with most of its parameters exported.
// They are exported for convenience in creating helper functions, as object
// capabilities aren't needed for testing.
Expand Down
169 changes: 0 additions & 169 deletions simapp/internal/testnet/cometrpc_test.go

This file was deleted.

136 changes: 0 additions & 136 deletions simapp/internal/testnet/cometstarter_test.go

This file was deleted.

10 changes: 0 additions & 10 deletions simapp/internal/testnet/doc.go

This file was deleted.

Loading

0 comments on commit e292bda

Please sign in to comment.