@@ -240,7 +240,7 @@ If the response contains a non-empty list of `attributes`, `x/wasm` will emit a
240
240
always be tagged with ` _contract_address ` by the Go module, so this is trust-worthy. The contract itself cannot overwrite
241
241
this field. Beyond this, the ` attributes ` returned by the contract, these are appended to the same event.
242
242
243
- A contact may also return custom ` events ` . These are multiple events, each with their own type as well as attributes.
243
+ A contract may also return custom ` events ` . These are multiple events, each with their own type as well as attributes.
244
244
When they are received, ` x/wasm ` prepends ` wasm- ` to the event type returned by the contact to avoid them trying to fake
245
245
an eg. ` transfer ` event from the bank module. The output here may look like:
246
246
@@ -312,7 +312,7 @@ consistent way possible.
312
312
### Combining Events from Sub-Messages
313
313
314
314
Each time a contract is executed, it not only returns the ` message ` event from its call, the ` execute ` event for the
315
- contact and the ` wasm ` event with any custom fields from the contract itself. It will also return the same set of information
315
+ contract and the ` wasm ` event with any custom fields from the contract itself. It will also return the same set of information
316
316
for all messages that it returned, which were later dispatched. The event system was really designed for one main
317
317
action emitting events, so we define a structure to flatten this event tree:
318
318
@@ -382,7 +382,7 @@ sdk.NewEvent(
382
382
383
383
When the ` reply ` clause in a contract is called, it will receive the data returned from the message it
384
384
applies to, as well as all events from that message. In the above case, when the ` reply ` function was called
385
- on ` contractAddr ` in response to initializing a contact , it would get the binary-encoded ` initData ` in the ` data `
385
+ on ` contractAddr ` in response to initializing a contract , it would get the binary-encoded ` initData ` in the ` data `
386
386
field, and the following in the ` events ` field:
387
387
388
388
``` go
0 commit comments