From 4b1bfbbe2e9c62d6da0b04ae24b67e21d007c7fe Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Fri, 18 Oct 2024 10:29:10 -0500 Subject: [PATCH] Comment debug statements --- node/pkg/accountant/submit_obs.go | 24 +++++++++---------- node/pkg/watchers/ibc/wasm_attrs.go | 6 ----- .../src/bridge/__tests__/wormhole_ibc_e2e.ts | 3 --- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/node/pkg/accountant/submit_obs.go b/node/pkg/accountant/submit_obs.go index 0c9db90b62..9e0876024b 100644 --- a/node/pkg/accountant/submit_obs.go +++ b/node/pkg/accountant/submit_obs.go @@ -428,11 +428,11 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse } // TODO: JOEL - REMOVE - if txResp.TxResponse.Tx != nil { - fmt.Println("NESTED TX DATA", txResp.TxResponse.Tx.Value) - } else { - fmt.Println("Nested tx data is null") - } + // if txResp.TxResponse.Tx != nil { + // fmt.Println("NESTED TX DATA", txResp.TxResponse.Tx.Value) + // } else { + // fmt.Println("Nested tx data is null") + // } var msg sdktypes.TxMsgData if err := msg.Unmarshal(data); err != nil { @@ -443,18 +443,18 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse isMsgResponses := len(msg.MsgResponses) > 0 // TODO: JOEL - REMOVE ME - fmt.Println("JOEL - TXRESP:", txResp.TxResponse) - fmt.Println("JOEL - MSG:", msg) - fmt.Println("JOEL - MSG DATA:", msg.Data) - fmt.Println("JOEL - IsMsgData:", isMsgData) - fmt.Println("JOEL - isMsgResponses:", isMsgResponses) + // fmt.Println("JOEL - TXRESP:", txResp.TxResponse) + // fmt.Println("JOEL - MSG:", msg) + // fmt.Println("JOEL - MSG DATA:", msg.Data) + // fmt.Println("JOEL - IsMsgData:", isMsgData) + // fmt.Println("JOEL - isMsgResponses:", isMsgResponses) var execContractResp wasmdtypes.MsgExecuteContractResponse if isMsgData { // TODO: JOEL - REMOVE ME - fmt.Println("JOEL - PARSING MSG.DATA") + // fmt.Println("JOEL - PARSING MSG.DATA") if err := execContractResp.Unmarshal(msg.Data[0].Data); err != nil { return nil, fmt.Errorf("failed to unmarshal ExecuteContractResponse from msg.Data: %w", err) @@ -462,7 +462,7 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse } else if isMsgResponses { // TODO: JOEL - REMOVE ME - fmt.Println("JOEL - PARSING MSG.RESPONSES") + // fmt.Println("JOEL - PARSING MSG.RESPONSES") if err := execContractResp.Unmarshal(msg.MsgResponses[0].Value); err != nil { return nil, fmt.Errorf("failed to unmarshal ExecuteContractResponse from msg.MsgResponses: %w", err) diff --git a/node/pkg/watchers/ibc/wasm_attrs.go b/node/pkg/watchers/ibc/wasm_attrs.go index c6261ef115..25bb9475ee 100644 --- a/node/pkg/watchers/ibc/wasm_attrs.go +++ b/node/pkg/watchers/ibc/wasm_attrs.go @@ -84,17 +84,11 @@ func (wa *WasmAttributes) Parse(logger *zap.Logger, event gjson.Result) error { if err == nil { key = string(keyRaw) } - // if err != nil { - // return fmt.Errorf("event attribute key is invalid base64: %s", attribute.String()) - // } valueRaw, err := base64.StdEncoding.DecodeString(valueBase.String()) if err == nil { value = string(valueRaw) } - // if err != nil { - // return fmt.Errorf("event attribute value is invalid base64: %s", attribute.String()) - // } // TODO: JOEL - Some Wasm Events aren't Base64 encoded -- or is it just wormhole tests still using base64 mock data diff --git a/sdk/js/src/bridge/__tests__/wormhole_ibc_e2e.ts b/sdk/js/src/bridge/__tests__/wormhole_ibc_e2e.ts index 74f87bbac3..763ffbf781 100644 --- a/sdk/js/src/bridge/__tests__/wormhole_ibc_e2e.ts +++ b/sdk/js/src/bridge/__tests__/wormhole_ibc_e2e.ts @@ -74,9 +74,6 @@ describe("IBC Watcher Integration Tests", () => { } ); - // TODO: JOEL - REMOVE ME - console.log("postMsg", postMsg); - const postedVaa = await terraBroadcastTxAndGetSignedVaa( [postMsg], terraWallet,