Skip to content

Commit

Permalink
Fix mistake in img name
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinAsdz authored Sep 2, 2022
1 parent 370f954 commit 93807b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 15_Errors/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ error TransferNotOwner(); // 自定义error
## 在remix上验证

1. 输入任意`uint256`数字和非0地址,调用`transferOwner1`,也就是`error`方法,控制台抛出了异常并显示我们自定义的`TransferNotOwner`
![13 1.png](./img/15-1.png)
![15 1.png](./img/15-1.png)

2. 输入任意`uint256`数字和非0地址,调用`transferOwner2`,也就是`require`方法,控制台抛出了异常并打印出`require`中的字符串。
![13 2.png](./img/15-2.png)
![15 2.png](./img/15-2.png)

3. 输入任意`uint256`数字和非0地址,调用`transferOwner3`,也就是`assert`方法,控制台只抛出了异常。
![13 3.png](./img/15-3.png)
![15 3.png](./img/15-3.png)


## 三种方法的gas比较
Expand Down

0 comments on commit 93807b0

Please sign in to comment.