我有一个来自 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?
我该如何解决?