首页 > TAG信息列表 > Soldlity0.8
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(Soldlity0.8-Library
Libraries are similar to contracts, but you can't declare any state variable and you can't 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