9
合约函数定义了类型但是没参数名称,这样的函数用什么用?
source link: https://learnblockchain.cn/question/2606
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
合约函数定义了类型但是没参数名称,这样的函数用什么用?
function execute(
address, /* user */
address borrowToken,
uint256, /* borrow */
uint256, /* debt */
bytes calldata data
) external {
}
类似这个函数,定义了5个参数类型,但是有3个都没名字,也用不了啊,那么这几个参数有啥意义呢?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK