You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/opcodes/00.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,6 @@ group: Stop and Arithmetic Operations
5
5
6
6
## Notes
7
7
8
-
Exits the current [context](/about) successfully.
8
+
Exits the current [context](/about#executionenv) successfully.
9
9
10
10
When a call is executed on an address with no code and the EVM tries to read the code data, the default value is returned, 0, which corresponds to this instruction and halts the execution.
The static cost is {gasPrices|balance}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about).
3
+
The static cost is {gasPrices|balance}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about#accesssets).
Copy file name to clipboardexpand all lines: docs/opcodes/35.mdx
+12-11
Original file line number
Diff line number
Diff line change
@@ -3,34 +3,35 @@ fork: Frontier
3
3
group: Environmental Information
4
4
---
5
5
6
-
*Index 1 is top of the stack. See [PUSH](/#60).*
6
+
_Index 1 is top of the stack. See [PUSH](/#60)._
7
7
8
8
## Stack input
9
9
10
-
0.`i`: byte offset in the [calldata](/about).
10
+
0.`i`: byte offset in the [calldata](/about#calldata).
11
11
12
12
## Stack output
13
13
14
-
0.`data[i]`: 32-byte value starting from the given offset of the [calldata](/about). All bytes after the end of the [calldata](/about) are set to 0.
14
+
0.`data[i]`: 32-byte value starting from the given offset of the [calldata](/about#calldata). All bytes after the end of the [calldata](/about#calldata) are set to 0.
[Reproduce in playground](/playground?unit=Wei&callData=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF&codeType=Mnemonic&code='~1w0yzz~2w31y'~%2F%2F%20Example%20z%5CnyzCALLDATALOADwzPUSH1%20%01wyz~_).
31
31
32
32
## Error cases
33
33
34
34
The state changes done by the current context are [reverted](#FD) in those cases:
[Reproduce in playground](/playground?unit=Wei&callData=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF&codeType=Mnemonic&code='z1~32~0ywwz2~8~31y'~wPUSH1%20z%2F%2F%20Example%20y~0wCALLDATACOPYw%5Cn%01wyz~_).
43
43
44
44
## Error cases
45
45
46
46
The state changes done by the current context are [reverted](#FD) in those cases:
Copy file name to clipboardexpand all lines: docs/opcodes/38.mdx
+6-5
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,27 @@ fork: Frontier
3
3
group: Environmental Information
4
4
---
5
5
6
-
*Index 1 is top of the stack. See [PUSH](/#60).*
6
+
_Index 1 is top of the stack. See [PUSH](/#60)._
7
7
8
8
## Notes
9
9
10
10
Each instruction occupies one byte. In the case of a [PUSH](/#60) instruction, the bytes that need to be pushed are encoded after that, it thus increases the codesize accordingly.
11
11
12
12
## Stack output
13
13
14
-
0.`size`: byte size of the [code](/about).
14
+
0.`size`: byte size of the [code](/about#code).
15
15
16
16
## Example
17
17
18
-
| * | Input | Output |
19
-
|--:|------:|-------:|
20
-
|`1`||`32`|
18
+
|\*| Input | Output |
19
+
|--:|----: |-----: |
20
+
|`1`||`32`|
21
21
22
22
[Reproduce in playground](/playground?unit=Wei&codeType=Mnemonic&code='%2F%2F%20Add%20som~instructions%20to%20increas~th~cod~sizeyPUSH29%200yPOPyyCODESIZE'~e%20y%5Cn%01y~_).
23
23
24
24
## Error cases
25
25
26
26
The state changes done by the current context are [reverted](#FD) in those cases:
[Reproduce in playground](/playground?unit=Wei&codeType=Mnemonic&code='qPutwbeginning%20ofwcodXtowexpected%20valueZ30VxWWWWWZ32VyyqRemovewvalues%20fromwstackTTj1~32~0_j2~8~31_'~Z1%20zFFFFFFy%5Cnw%20thXq%2F%2F%20jyyqExamplX_~0yCODECOPYZyPUSHXe%20WzzV%200TyPOP%01TVWXZ_jqwyz~_).
43
43
44
44
## Error cases
45
45
46
46
The state changes done by the current context are [reverted](#FD) in those cases:
The static cost is {gasPrices|extcodesize}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about).
3
+
The static cost is {gasPrices|extcodesize}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about#accesssets).
The memory expansion cost explanation can be found [here](/about).
9
-
If the accessed address is warm, `address_access_cost` is {gasPrices|warmstorageread}, otherwise it is {gasPrices|coldaccountaccess}. See section [access sets](/about).
8
+
The memory expansion cost explanation can be found [here](/about#memoryexpansion).
9
+
If the accessed address is warm, `address_access_cost` is {gasPrices|warmstorageread}, otherwise it is {gasPrices|coldaccountaccess}. See section [access sets](/about#accesssets).
0 commit comments