Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ To enforce this, host functions that are marked as not available in view calls i
### Gas metering

In contract calls and inside host functions, we charge for four kinds of operations:
1. [Reading from and writing to guest memory from host code](gas#reading-wasm-memory-in-host-functions-inside-a-contract-call).
2. [Storage gets and sets](gas#world-state-access).
3. [Returning values and pushing logs to the receipt](gas#transaction-related-data-storage).
4. Computation of [cryptographic operations](gas#cryptographic-operations-inside-work-steps).
1. [Reading from and writing to guest memory from host code](Gas.md#accessing-wasm-memory-from-host-functions).
2. [Storage gets and sets](Gas.md#world-state-storage-and-access).
3. [Returning values and pushing logs to the receipt](Gas.md#transaction-related-data-storage).
4. Computation of [cryptographic operations](Gas.md#cryptographic-operations).

We *do not* charge gas for reading host function arguments or for writing host function return values.

Expand Down