Skip to content

Commit

Permalink
Comment debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Oct 18, 2024
1 parent 61b4ebc commit 4b1bfbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
24 changes: 12 additions & 12 deletions node/pkg/accountant/submit_obs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -443,26 +443,26 @@ 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)
}
} 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)
Expand Down
6 changes: 0 additions & 6 deletions node/pkg/watchers/ibc/wasm_attrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions sdk/js/src/bridge/__tests__/wormhole_ibc_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ describe("IBC Watcher Integration Tests", () => {
}
);

// TODO: JOEL - REMOVE ME
console.log("postMsg", postMsg);

const postedVaa = await terraBroadcastTxAndGetSignedVaa(
[postMsg],
terraWallet,
Expand Down

0 comments on commit 4b1bfbb

Please sign in to comment.