Skip to content

Commit

Permalink
createContractWithInvokingFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
heew committed May 23, 2024
1 parent 356a560 commit 6059d8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions _posts/2024-05-23-TwoWaysToCreateContracts
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.

```
```
Binary file added _posts/images/20240520deployContract.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6059d8f

Please sign in to comment.