@@ -5,17 +5,17 @@ title: Events
55
66The [ events example] demonstrates how to publish events from a contract.
77
8- [ events example ] : https://github.com/stellar/soroban-examples/tree/main /events
8+ [ events example ] : https://github.com/stellar/soroban-examples/tree/v0.0.4 /events
99
1010## Run the Example
1111
1212First go through the [ Setup] process to get your development environment
13- configured, then clone the examples repository:
13+ configured, then clone the ` v0.0.4 ` tag of ` soroban- examples` repository:
1414
1515[ Setup ] : ../getting-started/setup.mdx
1616
1717```
18- git clone https://github.com/stellar/soroban-examples
18+ git clone -b v0.0.4 https://github.com/stellar/soroban-examples
1919```
2020
2121To run the tests for the example, navigate to the ` events ` directory, and use ` cargo test ` .
@@ -50,15 +50,15 @@ impl EventsContract {
5050 }
5151}
5252```
53- Ref: https://github.com/stellar/soroban-examples/tree/main /events
53+ Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4 /events
5454
5555## How it Works
5656
5757This example contract is similar to the [ hello world example] . It also contains one
5858contract function named ` hello ` . However, instead of returning the greeting message to the caller, it
5959publishes the message (along with some data) as a contract event.
6060
61- [ hello world example ] : https://github.com/stellar/soroban-examples/tree/main /hello_world
61+ [ hello world example ] : https://github.com/stellar/soroban-examples/tree/v0.0.4 /hello_world
6262
6363Contract events let smart contract developers emit information about what their
6464contract is doing.
0 commit comments