Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix example in emit_events #1169

Merged
merged 2 commits into from
Mar 10, 2024
Merged

fix: Fix example in emit_events #1169

merged 2 commits into from
Mar 10, 2024

Conversation

stoobie
Copy link
Collaborator

@stoobie stoobie commented Mar 7, 2024

Description of the Changes

This PR fixes #1124.

  1. The syscall emit_event example is incorrect, and the problem noted in num 2 also applies here.

  2. https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/starknet-events/

    The above code emits an event with two keys, the strings “status” and “deposit”

    The code shown actually uses “key” and “deposit” as keys

PR Preview URL

Events
emit_event

Check List

  • Changes have been done against main branch, and PR does not conflict
  • PR title follows the convention: <docs/feat/fix/chore>(optional scope): <description>, e.g: fix: minor typos in code

This change is Reviewable

Copy link

github-actions bot commented Mar 7, 2024

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1169/documentation/ .

@stoobie stoobie requested a review from 0xLucqs March 7, 2024 11:30
Copy link

github-actions bot commented Mar 7, 2024

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1169/documentation/ .

@stoobie stoobie merged commit 75b08a1 into main Mar 10, 2024
3 checks passed
@stoobie stoobie deleted the steve/fix/events_example branch March 10, 2024 14:03
xiaolou86 pushed a commit to xiaolou86/starknet-docs that referenced this pull request Apr 7, 2024
* Fix example in emit_events

* Update event example in starknet-events.adoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug][Events page] Code doesn't match explanation
2 participants