Inflearn Community Q&A
"send" and "transfer" are only available for objects of type "address payable", not "address". 오류
Written on
·
516
0
function buyRealEstate(uint _id, bytes32 _name, uint _age) public payable { require(_id >= 0 && _id <= 9);
buyers[_id] = msg.sender;
buyerInfo[_id] = Buyer(msg.sender, _name, _age);
owner.transfer(msg.value);
}
함수에서 onwer.transfer(....); 에 오류가 아래와 같은 오류가 납니다.
"send" and "transfer" are only available for objects of type "address payable", not "address".
blockchaindappEthereum
Quiz
52% of people got it wrong. Give it a try!
What are the advantages of using blockchain in real estate transactions?
Transaction speed is always rapid.
The record is not falsified or altered and remains permanently.
The role of the intermediary becomes more important.
All transaction information is public to everyone.
Answer 3
3
2
0






그렇네요! 무시하고 하니까 잘 됩니다 ㅎㅎ