Skip to main content
Minor improvements
Link

How do you input the msg`msg.valuevalue` in frontend?

Bumped by Community user
Source Link
user
  • 481
  • 1
  • 7
  • 11

How do you input the msg.value in frontend

How on earth do you input the value of a transaction? I have my entire frontend working because they all require 0 value, but my last function requires 0.02 ether and I can't get it to input in react.js. I've tried many things and I'll get errors for too many inputs. I'm using ethers.js.

I can also successfully add a value to my transaction on etherscan and remix IDE with no issue, this is only an issue with building my frontend.