Ethereum 将合同的天然气价格转移到我自己的地址
会发生什么Ethereum 将合同的天然气价格转移到我自己的地址,ethereum,solidity,smartcontracts,Ethereum,Solidity,Smartcontracts,会发生什么 msg.sender.transfer(msg.value); remix.eth只是告诉我 错误:无法读取未定义的属性“op” 对我来说很好: pragma solidity ^0.4.0; contract Test { function () payable { msg.sender.transfer(msg.value); } } 如果我没有指定要支付的函数,我会得到无效的操作码。你的问题不正确。您可能是指将资金从智能合约转移
msg.sender.transfer(msg.value);
remix.eth只是告诉我
错误:无法读取未定义的属性“op”
对我来说很好:
pragma solidity ^0.4.0;
contract Test {
function () payable {
msg.sender.transfer(msg.value);
}
}
如果我没有指定要支付的函数,我会得到无效的操作码。你的问题不正确。您可能是指将资金从智能合约转移到您的钱包?因为气体消耗了*gasPrice=whatYouPayForMiner,这个不能转移。是的,我的问题是关于这个,非常感谢!