我正在为我写的一份可靠的合同写安全帽测试。协定包含一个receive() external payable { ... }函数。如何从具有以太网量的测试中调用此函数?
发布于 2021-06-28 00:46:08
const params = [{
from: sender,
to: contractAddress,
value: ethers.utils.parseEther("1") // 1 ether
}];
const transactionHash = await provider.send('eth_sendTransaction', params)https://stackoverflow.com/questions/68147439
复制相似问题