Skip to content

Commit

Permalink
Add Event Handling Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Oct 18, 2024
1 parent e8063c3 commit 9701165
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
- name: Formatting checks
Expand Down Expand Up @@ -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" ' ./...
Expand Down
4 changes: 4 additions & 0 deletions node/pkg/accountant/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9701165

Please sign in to comment.