Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
怎么了 ?
msg.sender.transfer(msg.value);
remix.eth 只是告诉我
错误:无法读取未定义的属性“操作”
Works fine for me:
pragma solidity ^0.4.0; contract Test { function () payable { msg.sender.transfer(msg.value); } }
I get invalid opcode if I don't specify the function is payable.