From 968fb1f040c5de58eb3dd80ded4e060c771031d1 Mon Sep 17 00:00:00 2001 From: Yonghui Lin Date: Fri, 17 Apr 2020 22:01:42 +0800 Subject: [PATCH] Merge PR #6017: [DOCS]: fix the error link --- docs/core/events.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/events.md b/docs/core/events.md index 4df9f810f..7493b86a5 100644 --- a/docs/core/events.md +++ b/docs/core/events.md @@ -32,7 +32,7 @@ Events are returned to the underlying consensus engine in the response of the fo - [`DeliverTx`](./baseapp.md#delivertx) Events, the `type` and `attributes`, are defined on a **per-module basis** in the module's -`/internal/types/events.go` file, and triggered from the module's [`handler`](../building-modules/handler.md) +`/types/events.go` file, and triggered from the module's [`handler`](../building-modules/handler.md) via the [`EventManager`](#eventmanager). In addition, each module documents its events under `spec/xx_events.md`. @@ -96,7 +96,7 @@ The main `eventCategory` you can subscribe to are: These events are triggered from the `state` package after a block is committed. You can get the full list of `event` categories [here](https://godoc.org/github.com/tendermint/tendermint/types#pkg-constants). -The `type` and `attribute` value of the `query` allow you to filter the specific `event` you are looking for. For example, a `transfer` transaction triggers an `event` of type `Transfer` and has `Recipient` and `Sender` as `attributes` (as defined in the [`events` file of the `bank` module](https://github.com/cosmos/cosmos-sdk/blob/master/x/bank/internal/types/events.go)). Subscribing to this `event` would be done like so: +The `type` and `attribute` value of the `query` allow you to filter the specific `event` you are looking for. For example, a `transfer` transaction triggers an `event` of type `Transfer` and has `Recipient` and `Sender` as `attributes` (as defined in the [`events` file of the `bank` module](https://github.com/cosmos/cosmos-sdk/blob/master/x/bank/types/events.go)). Subscribing to this `event` would be done like so: ```json {