Skip to content

Commit

Permalink
Update arbitrum-docs/launch-orbit-chain/how-tos/customize-precompile.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: symbolpunk <103775631+symbolpunk@users.noreply.github.com>
  • Loading branch information
Jason-W123 and symbolpunk committed Oct 17, 2023
1 parent baa23e3 commit 222b428
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ hi

## Option 3: Define a new event

Here we will still use the precompile `Arbsys` as an example and add a simple `Hi` event to be emitted in `SayHi` method which we added in `ArbSys.sol` contract at Option 1, first go to the [precompiles implementation][precompile_impl_dir_link] directory, and find `ArbSys.go`, edit the `ArbSys` struct:
We'll reuse the `Arbsys` precompile from Option 1 above to demonstrate how to emit a simple `Hi` event from the `SayHi` method in `ArbSys.sol`.

First, go to the [precompiles implementation][precompile_impl_dir_link] directory, find `ArbSys.go`, and edit the `ArbSys` struct:

```go
// ArbSys provides system-level functionality for interacting with L1 and understanding the call stack.
Expand Down

0 comments on commit 222b428

Please sign in to comment.