Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal transfer failed #229

Closed
semuxgo opened this issue Jul 18, 2019 · 1 comment
Closed

Internal transfer failed #229

semuxgo opened this issue Jul 18, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@semuxgo
Copy link
Contributor

semuxgo commented Jul 18, 2019

As reported @witoldsz

Contract:

pragma solidity >=0.4.24 <0.7.0;
contract Transfer {   
    function send(address payable receiver) public payable {
        receiver.transfer(msg.value);
    }
}

Deployment code:

608060405234801561001057600080fd5b5060f48061001f6000396000f3fe6080604052600436106039576000357c0100000000000000000000000000000000000000000000000000000000900480633e58c58c14603e575b600080fd5b607d60048036036020811015605257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050607f565b005b8073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801560c4573d6000803e3d6000fd5b505056fea165627a7a723058205186ccb69aaf13d59541c67e670f8756aca1895921c8d3f2e1b3437bb6c3ca890029

Example transaction:

https://testnet.semux.info/explorer/transaction/0x0a91c1b5ab04a0170a192be7ad719eb17e5c61b22f5f7a3a6654dabf5ab2e8ae
semuxgo added a commit that referenced this issue Jul 19, 2019
@semuxgo
Copy link
Contributor Author

semuxgo commented Jul 19, 2019

This is due to the CreateEmptyContractOnOOG flag, which leads to an empty contract being created.

Fixed by commit c9f4ef3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant