Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Contract Creation #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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: 5 additions & 3 deletions content/1. Ethereum101/Contract Creation.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# 42 - [Contract Creation](Contract%20Creation.md)

Contract creation transactions are sent to a special destination address called the zero address i.e. `0x0`.
When creating a contract from an externally owned account (EOA), you set the "to" value to "null" or "0x0" or just leave it empty. This is to indicate that this transaction is not directed at a specific address but is instead a contract creation transaction.

A contract creation transaction contains a data payload with the compiled bytecode to create the contract.

An optional ether amount in the [Value](Value.md) field will create the new contract with a starting balance.



___
## Slide Screenshot
![042.jpg](../../images/1.%20Ethereum%20101/042.jpg)
___
## Slide Text
- Tx Result -> Creation [Transaction](Transaction.md)
- Create tx -> Sent to special 0 address (0x0)
- Create tx -> Sent to "null", "0x0" or empty
- Data Payload -> Contract Bytecode
- Value -> Optional Starting Contract Ether Balance
___
## References
- [EIP-170: Contract code size limit](https://eips.ethereum.org/EIPS/eip-170)
- [Youtube Reference](https://youtu.be/ltvTIr4K63s?t=77)
- [Youtube Reference](https://youtu.be/ltvTIr4K63s?t=77)