YanjunLin-Andrie / FanaticFi2.0_Blockchain_App

A decentralized blockchain platform allows public figures to create their customized tokens, which enables them to generate revenue based on their public image/performance/likeness, etc. It also allows ‘Fanatics’ (investors/fans) to pocket profit by trading tokens as its value increases.
MIT License
2 stars 0 forks source link

execution reverted: Crowdsale: weiAmount is 0 #4

Open Dsmannight opened 2 years ago

Dsmannight commented 2 years ago

When trying to buy a token an error saying execution reverted: Crowdsale: weiAmount is 0 pops up. This seems to only be happening because of the gas or gas estimation on lines 203 and 204 in fanaticfy.py.

YanjunLin-Andrie commented 2 years ago

weiAmount problem solved by calling buildTransaction on txn in fanaticfi.py file