-
카테고리
-
세부 분야
블록체인
-
해결 여부
미해결
"send" and "transfer" are only available for objects of type "address payable", not "address". 오류
19.04.01 19:12 작성 조회수 317
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".
답변을 작성해보세요.
2
0
답변 3