DEV Community

Discussion on: How to create a smart contract to receive payments

Collapse
 
eed6d7872f6537 profile image
Ben Sigman

Thanks for the example. I was trying to out this contract, but I keep getting a weird error - I'm sure it's something simple that I'm missing here.

I deployed to Rinkeby Testnet using remix... then I loaded the contract and ABI into app.mycrypto.com/interact-with-con... - but when I try to send a donation, I keep getting this error:

"Something went wrong: insufficient funds for intrinsic transaction cost. Make sure you've filled everything out correctly and try again. If this error persists, please visit our Knowledge Base for further assistance."

I have plenty of test ETH in my account. I have tried to send ETH directly to the contract and it also fails. What am I doing wrong?

Collapse
 
eed6d7872f6537 profile image
Ben Sigman

One strange thing is that I can make a donation of "0 ETH" but if I add ANY amount - such as 0.0001 ETH - I get the same error as above. Gas costs are only 0.000094ETH so it really can't be the issue. Does my contract need to be deployed with ETH in it?