У меня есть вопрос от Solidity, и моя IDE использует Remix, я хочу отправить немного денег себе.
Мой код:
pragma solidity ^0.4.24;
contract toMyself{
address owner;
function toMyself()public{
owner = msg.sender;
}
function Send(uint x)public payable{
owner.transfer(x);
}
}
Но когда я нажимаю кнопку "Отправить", появляется сообщение типа:
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Как я могу это исправить?