current position:Home>How does Web3 call the fallback function of the contract

How does Web3 call the fallback function of the contract

2022-02-03 23:54:31 Q & A of Denglian community

Want to achieve web3 Call the contract fallback function , Because the proxy contract is called in fallback in .

I passed contract.functions.xxx().call Call it , An error will be reported and the method cannot be found .

I would like to ask you if you should use web3 Call proxy contract method (fallback Function )

thank you




Take the answer 1:

fallback Can't call , They are passively triggered . The document states when they are called .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/202202032354289705.html

Random recommended