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

docs: Doc modify for sepolia #1086

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions basic/17-etherjs-wallet-develop/README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ wallet.provider = provider;

如果用普通的 JS number 对象来存储操作的话,可能会因为数据溢出而导致结果异常。

执行测试用例
```js
hardhat test
```
## 参考链接

- https://learnblockchain.cn/2019/04/11/wallet-dev-guide/#ethers.js
Expand Down
5 changes: 5 additions & 0 deletions basic/17-etherjs-wallet-develop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ wallet.provider = provider;

If you use a normal JS number object to store the operation, it may cause abnormal results due to data overflow.

Execute test case
```js
hardhat test
```

## Reference link

- <https://learnblockchain.cn/2019/04/11/wallet-dev-guide/#ethers.js>
Expand Down
21 changes: 12 additions & 9 deletions basic/17-etherjs-wallet-develop/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "hardhat-project",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"chai": "^4.3.4",
"ethereum-waffle": "^3.3.0",
"ethers": "^5.1.4",
"hardhat": "^2.2.1",
"sol-merger": "^3.1.0"
"name": "17-etherjs-wallet-develop",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@nomiclabs/hardhat-waffle": "^2.0.6",
"chai": "^5.1.0",
"hardhat": "^2.22.2",
"mocha": "^10.4.0"
}
}
5 changes: 4 additions & 1 deletion basic/17-etherjs-wallet-develop/test/wallet-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const { expect } = require("chai");

const {ethers} = require("hardhat");
const { expect } = import("chai");


describe("Token contract", function() {
it("create wallet", async function() {
Expand Down
2 changes: 2 additions & 0 deletions basic/18-web3py/README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ ganache-cli

- 执行脚本
```
如果安装完python 3 以上版本,以下命令执不通时,使用 “python3" 代替 "python"
## 演示合约构造及部署
python scripts/1_deploy_using_web3.py


## 根据已存在的合约地址构造合约实例
python scripts/2_play_around_on_existing_contract.py

Expand Down
1 change: 1 addition & 0 deletions basic/18-web3py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ganache-cli

- execute script
```
If the following command cannot be executed after installing Python 3 or above, use "python3" instead of "python"“
## Demonstrate contract construction and deployment
python scripts/1_deploy_using_web3.py

Expand Down
Loading