Ether is not transferring in this code from one account to other.?

Viewed 26

// SPDX-License-Identifier: MIT

pragma solidity >0.5.0 < 0.9.0;

contract TestPay {

function payEther()payable public{
    //  user will pay to contract
}

function transferEther(address payable _to,uint amt) payable public{
    _to.transfer(amt);
}

}

0 Answers
Related