Skip to content

Commit

Permalink
Merge pull request #654 from OffchainLabs/Add-comments-to-precompile-…
Browse files Browse the repository at this point in the history
…howto

Add comments to precompile howto
  • Loading branch information
symbolpunk authored Oct 10, 2023
2 parents bfe24cb + a5b0de0 commit aa902b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arbitrum-docs/launch-orbit-chain/how-tos/customize-precompile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ import PublicPreviewBannerPartial from '../partials/_orbit-public-preview-banner

<PublicPreviewBannerPartial />

:::caution

The guidance in this document will work only if you use `eth_call` to call the new precompiles. If you're calling from other contracts or adding non-view/pure methods, this approach will break block validation.

To support these additional use-cases, stay tuned for instructions that walk you through the process of updating the Wasm module root.

If you want to test modifying the State Transition System (STS) before this guidance is available, use the `--node.staker.dangerous.without-block-validator` config flag when you start your node.

:::

There are two ways to customize your chain's precompiles:

1. Add new methods to an existing [precompile][precompile_impl_dir_link].
Expand Down

1 comment on commit aa902b4

@vercel
Copy link

@vercel vercel bot commented on aa902b4 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.