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
{{ message }}
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/tutorial/the-basics/README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -48,20 +48,20 @@ Congratulations you've just compiled your first contract!
48
48
The bytecode output of the compiler will echo the following into the console `600f8060093d393df36000356020350160005260206000f3`.
49
49
50
50
When you deploy this contract code it will have the runtime bytecode of the main macro we just created! In the above snippet you will find it after the first `f3` (the preceding bytecode is boiler plate constructor logic.)
51
-
That leaves us with this: `6000356020350160005260206000f3`
51
+
That leaves us with this: `5f35602035015f5260205ff3`
52
52
Below, this example dissembles what you have just created!
53
53
54
54
```
55
55
BYTECODE MNEMONIC STACK ACTION
56
-
60 00 // PUSH1 0x00 // [0x00]
56
+
5f // PUSH0 // [0x00]
57
57
35 // CALLDATALOAD // [number1] Store the first 32 bytes on the stack
58
58
60 20 // PUSH1 0x20 // [0x20, number1]
59
59
35 // CALLDATALOAD // [number2, number1] Store the second 32 bytes on the stack
60
60
01 // ADD // [number2+number1] Take two stack inputs and add the result
61
-
60 00 // PUSH1 0x00 // [0x0, (n2+n1)]
61
+
5f // PUSH0 // [0x0, (n2+n1)]
62
62
52 // MSTORE // [] Store (n2+n1) in the first 32 bytes of memory
63
63
60 20 // PUSH1 0x20 // [0x20]
64
-
60 00 // PUSH1 0x00 // [0x00, 0x20]
64
+
5f // PUSH0 // [0x00, 0x20]
65
65
f3 // RETURN // [] Return the first 32 bytes of memory
0 commit comments