Title: Coders! Help, please - Ethereum smart-contract does not accept payments... Post by: Cy80rG on October 26, 2017, 01:41:33 PM Hello!
I'm studing Ethereum and its smart contracts now. It's about tokens and crowdsale. I have deployed via Etherium Wallet 0.9.2 two example smart-contracts (from here: https://ethereum.org/token#the-code (https://ethereum.org/token#the-code) and here: https://ethereum.org/crowdsale#the-code (https://ethereum.org/crowdsale#the-code)) in private network succesfully (mining is on). But if i try to send Ether from main address to crowdsale-contract address i see this error: "It seems this transaction will fail. If you submit it, it may consume all the gas you provide." Also in transaction confirmation window i see this message: "Estimated fee consumption: The contract won't allow this transaction to be executed". If I ignore this messages and make confirmation, than window closes and nothing happens. Balance is same as before and no tokens received. Could You help me with the answer what i do wrong? Thanks a lot! |