Skip to content

Commit

Permalink
Cleanup TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Sep 11, 2024
1 parent 434fb9f commit 0bf3a41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions wormchain/x/tokenfactory/bindings/message_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion wormchain/x/wormhole/ante/wasmd_ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0bf3a41

Please sign in to comment.