OffchainLabs / OffchainLabs/arbitrum-docs

Docs update request: /stylus-by-example/basic_examples/events

Open
#2,501 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
252
Forks
453
Avg merge
3d 2h
Merged PRs (30d)
27

Description

Source: https://docs.arbitrum.io/stylus-by-example/basic_examples/events

Request:

The doc on logging says that:

Using the evm::log function in the Stylus SDK is the preferred way to log events.

However, the SDK returns a deprecation notice for that method and notifies users they should use stylus_sdk::core::log as seen in this code example:

            stylus_sdk::stylus_core::log(
                self.vm(),
                EtherReceived {
                    sender,
                    amount,
                    method: "fallback".to_string(),
                },
            );

I believe the Logging docs need to get updated accordingly.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.