Skip to content

Commit

Permalink
Merge pull request #445 from moonbeam-foundation/themacexpert/web3py
Browse files Browse the repository at this point in the history
Web3 Py page modernization
  • Loading branch information
eshaben authored Aug 9, 2024
2 parents a949f36 + d195a03 commit e071600
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builders/libraries/web3py.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ python3 transaction.py

您也可以使用`balances.py`脚本为发送地址和接收地址查看余额是否变化。整体操作流程如下所示:

![Send Tx Web3py](/images/builders/ethereum/libraries/web3py/web3py-1.webp)
--8<-- 'code/builders/ethereum/libraries/web3-py/terminal/transaction.md'

## 部署合约 {: #deploy-a-contract }

Expand Down Expand Up @@ -211,7 +211,7 @@ python3 deploy.py

如果成功,合约地址将显示在终端。

![Deploy Contract Web3py](/images/builders/ethereum/libraries/web3py/web3py-2.webp)
--8<-- 'code/builders/ethereum/libraries/web3-py/terminal/deploy.md'

### 读取合约数据(调用函数) {: #read-contract-data }

Expand Down Expand Up @@ -273,7 +273,7 @@ python3 increment.py

如果成功,交易哈希将显示在终端。您可以在`increment.py`脚本旁边使用`get.py`脚本以确保数值如预期变化:

![Increment Contract Web3py](/images/builders/ethereum/libraries/web3py/web3py-3.webp)
--8<-- 'code/builders/ethereum/libraries/web3-py/terminal/increment.md'

接下来,您可以打开`reset.py`文件并执行以下步骤以创建脚本:

Expand All @@ -297,6 +297,6 @@ python3 reset.py

如果成功,交易哈希将显示在终端。您可以在`reset.py`脚本旁边使用`get.py`脚本以确保数值如预期变化:

![Reset Contract Web3py](/images/builders/ethereum/libraries/web3py/web3py-4.webp)
--8<-- 'code/builders/ethereum/libraries/web3-py/terminal/reset.md'

--8<-- 'text/_disclaimers/third-party-content.md'

0 comments on commit e071600

Please sign in to comment.