Skip to content

Commit

Permalink
Revert "only patch encoding for tx service"
Browse files Browse the repository at this point in the history
This reverts commit 4b1c141.
  • Loading branch information
yihuang committed Dec 6, 2024
1 parent 4b1c141 commit 8cc8dd8
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1327,23 +1327,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig

// RegisterTxService implements the Application.RegisterTxService method.
func (app *App) RegisterTxService(clientCtx client.Context) {
// create new config instance to avoid affect the state machine
encodingConfig := evmenc.MakeConfig()
cdc := encodingConfig.Amino
interfaceRegistry := encodingConfig.InterfaceRegistry

app.BasicModuleManager.RegisterLegacyAminoCodec(cdc)
app.BasicModuleManager.RegisterInterfaces(interfaceRegistry)

// for decoding legacy transactions whose modules are removed
RegisterLegacyCodec(cdc)
RegisterLegacyInterfaces(interfaceRegistry)

clientCtx = clientCtx.
WithInterfaceRegistry(interfaceRegistry).
WithTxConfig(encodingConfig.TxConfig).
WithCodec(encodingConfig.Codec)
authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, interfaceRegistry)
authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
}

// RegisterTendermintService implements the Application.RegisterTendermintService method.
Expand Down

0 comments on commit 8cc8dd8

Please sign in to comment.