Skip to content

Commit

Permalink
update link
Browse files Browse the repository at this point in the history
  • Loading branch information
vita-dounai committed Oct 14, 2020
1 parent f47459b commit bc78a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/in_depth/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct Foo {

被索引的参数本身不会被保存,但是Dapp应用可以通过被索引参数的值来对事件进行检索。在Liquid中,一个事件最多可有四个值用于被索引,但是第一个索引恒定为事件签名(事件名及其参数类型)的哈希值,因此在事件定义中,您最多可以将三个参数被标注为`#[liquid(indexed)]`

与状态变量定义类似,不能为定义事件的结构体添加可见性声明或模板参数,但和状态变量定义不同的时,其内部每个字段也不允许添加可见性声明。事件参数及索引参数的类型均受到限制,具体的限制可参考[类型](./types.html)一节。
与状态变量定义类似,不能为定义事件的结构体添加可见性声明或模板参数,但和状态变量定义不同的时,其内部每个字段也不允许添加可见性声明。事件参数及索引参数的类型均受到限制,具体的限制可参考[类型](./types.html#id4)一节。

## 触发事件

Expand Down

0 comments on commit bc78a77

Please sign in to comment.