Skip to content

Commit 001cf6d

Browse files
committed
fix: read events directly from resp and not logs
1 parent 246017f commit 001cf6d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

relayer/chains/wasm/tx.go

+8-10
Original file line numberDiff line numberDiff line change
@@ -1309,17 +1309,15 @@ func parseEventsFromTxResponse(resp *sdk.TxResponse) []provider.RelayerEvent {
13091309
return events
13101310
}
13111311

1312-
for _, logs := range resp.Logs {
1313-
for _, event := range logs.Events {
1314-
attributes := make(map[string]string)
1315-
for _, attribute := range event.Attributes {
1316-
attributes[attribute.Key] = attribute.Value
1317-
}
1318-
events = append(events, provider.RelayerEvent{
1319-
EventType: event.Type,
1320-
Attributes: attributes,
1321-
})
1312+
for _, event := range resp.Events {
1313+
attributes := make(map[string]string)
1314+
for _, attribute := range event.Attributes {
1315+
attributes[attribute.Key] = attribute.Value
13221316
}
1317+
events = append(events, provider.RelayerEvent{
1318+
EventType: event.Type,
1319+
Attributes: attributes,
1320+
})
13231321
}
13241322
return events
13251323
}

0 commit comments

Comments
 (0)