Skip to content

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

@hummusonrails

Description

@hummusonrails

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.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions