Replies: 4 comments 28 replies
-
call from front-end -
|
Beta Was this translation helpful? Give feedback.
-
@aviorn36 Do you mean you have a frontend website and it is working fine on the Goerli network but not working on the hardhat node? |
Beta Was this translation helpful? Give feedback.
-
Hi @PatrickAlphaC , sir , can you please help me in this issue. I have tried this in two different system (laptop) but still facing same issue with the local hardhat node. Stuck for almost 2 days. |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same issue. On the hardhat network the transaction is reverted with the message "You need to spend more ETH!". On the Goerli network the transaction is successful. Contract in goerli (see last tx): https://goerli.etherscan.io/address/0x3C12dca4B41Dc007d052d15bB6ca2D82836D0487 Github repos: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Community,
I am stumbling across a weird problem hoping if some-one could help me out of this one. I have a front-end deployed in local and back-end contract deployed in hard-hat local node as well as in Test Goerli network, when I send a transaction from front-end browser extension in hard-hat local the msg.value in fund function get always assigned to 0 (Check below screen-shot). But, when i send the transaction to Test Goerli network it works well. Not sure why this in-consistent behaviour across different network.
Surprisingly, when i run the tests in local node to test the fund function - it works well. If I trigger a fund transaction through script , it works well again. Observation-
Front end transaction with test goerli works well.
Unit-test and script call internally in local node works well
Front end transaction with local node has some issue.
Local node snip -

Test Goerli ether-scan -
https://goerli.etherscan.io/address/0xadd3c58237d374b16d09d358435c229cde1286b1
I request some-one to shed some light in this.
Beta Was this translation helpful? Give feedback.
All reactions