Skip to content

Commit cb72cb5

Browse files
authored
Merge pull request #2227 from sky-coderay/main
docs: fix ‘contact’ → ‘contract’ typos
2 parents 8a5ccdb + f96053e commit cb72cb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EVENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ If the response contains a non-empty list of `attributes`, `x/wasm` will emit a
240240
always be tagged with `_contract_address` by the Go module, so this is trust-worthy. The contract itself cannot overwrite
241241
this field. Beyond this, the `attributes` returned by the contract, these are appended to the same event.
242242

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.
244244
When they are received, `x/wasm` prepends `wasm-` to the event type returned by the contact to avoid them trying to fake
245245
an eg. `transfer` event from the bank module. The output here may look like:
246246

@@ -312,7 +312,7 @@ consistent way possible.
312312
### Combining Events from Sub-Messages
313313

314314
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
316316
for all messages that it returned, which were later dispatched. The event system was really designed for one main
317317
action emitting events, so we define a structure to flatten this event tree:
318318

@@ -382,7 +382,7 @@ sdk.NewEvent(
382382

383383
When the `reply` clause in a contract is called, it will receive the data returned from the message it
384384
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`
386386
field, and the following in the `events` field:
387387

388388
```go

0 commit comments

Comments
 (0)