24908/transfer-the-gas-value-of-contract-to-my-own-address
What happens ?
msg.sender.transfer(msg.value);
remix.eth is just telling me
errored: Cannot read property 'op' of undefined
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.
Going through your code, I noticed that you ...READ MORE
Whenever a smart contract receives ether via ...READ MORE
You can use modifiers to do it ...READ MORE
Hey, you gotta provide the contract code, and ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
recipes is a dynamic storage array. You need ...READ MORE
I tried your contracts in Remix, but ...READ MORE
Since you have already deployed the contract ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.