Solidity 102-第20讲发送ETH中的测试题7为什么value是2 ETH,最终两个合约余额还能有1ETH #762
Replies: 2 comments
|
题目的意思可能是 |
0 replies
Answer selected by
XdpCs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




这里的意思是部署完sendETH和receiveETH合约后,在左上方的Value那里输入2ETH
然后在sendETH合约中的callETH中输入1000000000000000000(因为这里的单位是wei,所以这里的1000000000000000000wei= 1ETH)
最后点击transact,就会得到sendETH合约receiveETH合约分别拥有1个ETH
:)