From 0bf3a411a505ea07cb94c50b818497aecbe2942d Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Wed, 11 Sep 2024 12:13:17 -0500 Subject: [PATCH] Cleanup TODOs --- wormchain/x/tokenfactory/bindings/message_plugin.go | 7 ------- wormchain/x/wormhole/ante/wasmd_ante.go | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/wormchain/x/tokenfactory/bindings/message_plugin.go b/wormchain/x/tokenfactory/bindings/message_plugin.go index 32f7bb7bce..ae0e5140bb 100644 --- a/wormchain/x/tokenfactory/bindings/message_plugin.go +++ b/wormchain/x/tokenfactory/bindings/message_plugin.go @@ -3,7 +3,6 @@ package bindings import ( "encoding/json" "errors" - "fmt" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmvmtypes "github.com/CosmWasm/wasmvm/types" @@ -41,9 +40,6 @@ var _ wasmkeeper.Messenger = (*CustomMessenger)(nil) // DispatchMsg executes on the contractMsg. func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmvmtypes.CosmosMsg) ([]sdk.Event, [][]byte, error) { if msg.Custom != nil { - // TODO: JOEL - REMOVE ME - fmt.Println("JOEL - Incoming MSG", string(msg.Custom)) - // only handle the happy path where this is really creating / minting / swapping ... // leave everything else for the wrapped version var contractMsg bindingstypes.TokenFactoryMsg @@ -55,9 +51,6 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre } tokenMsg := contractMsg.Token - // TODO: JOEL - REMOVE ME - fmt.Println("JOEL - Parsed Token Msg", tokenMsg) - if tokenMsg.CreateDenom != nil { return m.createDenom(ctx, contractAddr, tokenMsg.CreateDenom) } diff --git a/wormchain/x/wormhole/ante/wasmd_ante.go b/wormchain/x/wormhole/ante/wasmd_ante.go index 6224ebc36e..440f2c927e 100644 --- a/wormchain/x/wormhole/ante/wasmd_ante.go +++ b/wormchain/x/wormhole/ante/wasmd_ante.go @@ -63,7 +63,7 @@ func (wh WormholeWasmdDecorator) AnteHandle(request sdk.Request, tx sdk.Tx, simu *wasmtypes.MsgUpdateParams, *wasmtypes.MsgPinCodes, *wasmtypes.MsgUnpinCodes, - *wasmtypes.MsgSudoContract, // TODO: JOEL - May not be necessary as only executable by the chain + *wasmtypes.MsgSudoContract, *wasmtypes.MsgStoreAndInstantiateContract, *wasmtypes.MsgAddCodeUploadParamsAddresses, *wasmtypes.MsgRemoveCodeUploadParamsAddresses,