Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit c77c647

Browse files
author
alcueca
committed
fix bytecode for shanghai
1 parent 81e25a8 commit c77c647

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tutorial/the-basics/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ Congratulations you've just compiled your first contract!
4848
The bytecode output of the compiler will echo the following into the console `600f8060093d393df36000356020350160005260206000f3`.
4949

5050
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`
5252
Below, this example dissembles what you have just created!
5353

5454
```
5555
BYTECODE MNEMONIC STACK ACTION
56-
60 00 // PUSH1 0x00 // [0x00]
56+
5f // PUSH0 // [0x00]
5757
35 // CALLDATALOAD // [number1] Store the first 32 bytes on the stack
5858
60 20 // PUSH1 0x20 // [0x20, number1]
5959
35 // CALLDATALOAD // [number2, number1] Store the second 32 bytes on the stack
6060
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)]
6262
52 // MSTORE // [] Store (n2+n1) in the first 32 bytes of memory
6363
60 20 // PUSH1 0x20 // [0x20]
64-
60 00 // PUSH1 0x00 // [0x00, 0x20]
64+
5f // PUSH0 // [0x00, 0x20]
6565
f3 // RETURN // [] Return the first 32 bytes of memory
6666
```
6767

0 commit comments

Comments
 (0)