inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습

solidity 0.8.7

236

도도(코딩루팡)

작성한 질문수 0

1

function transfer(uint _value) public returns (bool){
// only PASS - remain balance is more than requested value
require(getBalance() >= _value);
 
// +type casting
address payable receiver = payable(msg.sender);

// then send transfer
receiver.transfer(_value);

return true;
}

답변 0