current position:Home>Can't the method in the contract be transferred into eth at the same time

Can't the method in the contract be transferred into eth at the same time

2022-02-03 23:13:38 Q & A of Denglian community

cc.png If the n function , At the same time eth, Will prompt gas exceed 800w




Take the answer 1:

Function plus payable modification .

Reference documents : https://learnblockchain.cn/docs/solidity/contracts.html#fallback




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032313375965.html

Random recommended