Solidity:错误 Posted on May 21, 2024 在Solidity中,错误处理是非常重要的一部分。合约中的错误可能会导致严重的安全问题,因此需要谨慎处理。Solidity提供了几种不同的方式来处理错误: [Read More] Tags: blockchain solidity
Solidity:事件 Posted on May 21, 2024 在 Solidity 中,事件(Event)是合约与区块链外部的接口。事件可以用来记录合约的状态变化,或者触发合约外部的响应。事件在合约中被触发,然后被区块链记录在交易日志中。 [Read More] Tags: blockchain solidity
Solidity:函数 Posted on May 21, 2024 在 Solidity 中,函数是执行特定任务的代码块。函数可以接受参数,并且可以返回值。函数在智能合约中起着核心作用,用于实现合约的逻辑。 [Read More] Tags: blockchain solidity
Solidity:数据存储位置 Posted on May 20, 2024 在 Solidity 中,有三种数据存储位置:storage、memory 和 calldata。这三者的差异主要在于它们的数据保存位置和存储周期。 [Read More] Tags: blockchain solidity
Solidity:常用数据结构 Posted on May 20, 2024 在 Solidity 中,有各种各样的数据结构可用于组织和处理信息。以下是一些最常用的数据结构。 [Read More] Tags: blockchain solidity
Solidity:原始数据类型 Posted on May 18, 2024 在Solidity中,有几种原始的数据类型,以下是每种类型和它们的一般用途: [Read More] Tags: blockchain solidity