From 9701165dfff570843a6ef9dc9ba7b164f278dbec Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Fri, 18 Oct 2024 15:22:55 -0500 Subject: [PATCH] Add Event Handling Logs --- .github/workflows/build.yml | 6 +++--- node/pkg/accountant/watcher.go | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ae5bad025..e3d98994a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -271,7 +271,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.21.9" + go-version: "1.22.5" - run: cd sdk/vaa && go test && go test -v -fuzz FuzzCalculateQuorum -run FuzzCalculateQuorum -fuzztime 15s # Run Go linters @@ -288,7 +288,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.21.9" + go-version: "1.22.5" - name: Install formatter run: go install golang.org/x/tools/cmd/goimports@v0.8.0 - name: Formatting checks @@ -330,7 +330,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.21.9" + go-version: "1.22.5" # The go-ethereum and celo-blockchain packages both implement secp256k1 using the exact same header, but that causes duplicate symbols. - name: Run golang tests run: cd node && go test -v -timeout 5m -race -ldflags '-extldflags "-Wl,--allow-multiple-definition" ' ./... diff --git a/node/pkg/accountant/watcher.go b/node/pkg/accountant/watcher.go index 8f6c63293a..3b05675e8a 100644 --- a/node/pkg/accountant/watcher.go +++ b/node/pkg/accountant/watcher.go @@ -102,6 +102,10 @@ func (acct *Accountant) handleEvents(ctx context.Context, evts <-chan tmCoreType } for _, event := range tx.Result.Events { + + fmt.Println("event.Type", event.Type) + fmt.Println("event.Attributes", event.Attributes) + if event.Type == "wasm-Observation" { evt, err := parseEvent[WasmObservation](acct.logger, event, "wasm-Observation", contract) if err != nil {