Skip to content

Commit

Permalink
feat: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
梁怀刚 committed Jul 15, 2024
1 parent 1163cd8 commit 65c52d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/知识点/web3.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,11 @@ npm install web3 bip39 ethereumjs-txa1.3.7 ethereumis-util ethereumjs-wallet
| msg.value (uint) | 当前消息的wei值 |
| now (uint) | 当前块的时间戳 |
| tx.gasprice (uint) | 交易的gas价格 |
| tx.origin (address payable) | 交易的发送方 |
| tx.origin (address payable) | 交易的发送方 |

### 可见性修饰符

1. public - 所有合约与账号都可以调用
2. private - 只有在定义该函数的合约可以调用
3. internal - 当前合约或者继承该合约的,类似java 里面的protected关键字
4. external - 只有其他合约或者账号可以调用,定义该函数的合约不能调用除非使用this关键字

0 comments on commit 65c52d2

Please sign in to comment.