-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
heew
committed
May 23, 2024
1 parent
356a560
commit 6059d8f
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: post | ||
title: "Two Ways To Create Contracts" | ||
date: 2024-05-20 22:00:29 +0800 | ||
categories: jekyll update | ||
--- | ||
|
||
### Number one, creating contracts by deploy | ||
We know mostly we can transfer from External Outside Account to 0x0 to create a new contract. The code in this transaction will be executed on Ethereum Virtual Machine. And the contract address will be logged in the state tree. | ||
|
||
![What](images/20240520deployContract.png) | ||
|
||
### Number two, creating contracts by invoke functions in one contract | ||
There are also another way to create a new contract. We can use `new` keyword in a contract function to create a new contract. We can just send a transaction to the contract. And invoke the function to create a new contract. | ||
|
||
``` | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.