其他分享
首页 > 其他分享> > solidity 错误

solidity 错误

作者:互联网

solidity版本 0.7.5

 

Member "transfer" not found or not visible after argument-dependent lookup in address

solidity 0.5,address地址类型细分为 address和 address payable,只有 address payable可以使用 transfer(), send()函数,例如:

address public owner ==> address payable public owner

标签:错误,transfer,solidity,payable,address,owner,public
来源: https://www.cnblogs.com/hanbowen/p/14415934.html