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 a4ac6f1 commit 603df22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ If you want to make the param in event as `index`, just add `index` to the Solid
event Hi(address indexed caller);
```

Now as emiting events need to cost gas, so we should remove `view` function behavior from the method:
When an event is emitted, state is changed and a gas cost is incurred, so we should remove the `view` function behavior:

```solidity
function sayHi() external returns(string memory);
Expand Down

0 comments on commit 603df22

Please sign in to comment.