热门标签
更多>
搜索结果
查询Tags标签: Soldlity0.8,共有 2条记录-
Soldlity0.8-Library
Libraries are similar to contracts, but you cant declare any state variable and you cant send ether.A library is embedded into the contract if all library functions are internal.Otherwise the library must be deployed and then linked before the contrac…
2022/8/1 6:22:51 人评论 次浏览 -
Soldlity0.8-ABI Decode
abi.encode encodes data into bytes.abi.decode decodes bytes back into data.// SPDX-License-Identifier: MIT pragma solidity ^0.8.13;contract AbiDecode {struct MyStruct {string name;uint[2] nums;}function encode(uint x,address addr,uint[] calldata arr,M…
2022/8/1 6:22:50 人评论 次浏览