Ethers.js 的 Solidity 回退函数
Solidity fallback function with Ethers.js
使用 Ethers.js 调用 Solidity fallback() 函数的推荐方法是什么? https://docs.soliditylang.org/en/v0.8.0/contracts.html#fallback-function
您可以send一个空交易
let tx = {
to: contractAddress
};
await signer.sendTransaction(tx);
使用 Ethers.js 调用 Solidity fallback() 函数的推荐方法是什么? https://docs.soliditylang.org/en/v0.8.0/contracts.html#fallback-function
您可以send一个空交易
let tx = {
to: contractAddress
};
await signer.sendTransaction(tx);