Skip to content

Solidity 102-第20讲发送ETH中的测试题7为什么value是2 ETH,最终两个合约余额还能有1ETH #762

Closed Answered by DennisWang917
HappyhappyChan asked this question in Q&A
Discussion options

You must be logged in to vote

这里的意思是部署完sendETH和receiveETH合约后,在左上方的Value那里输入2ETH

然后在sendETH合约中的callETH中输入1000000000000000000(因为这里的单位是wei,所以这里的1000000000000000000wei= 1ETH)

最后点击transact,就会得到sendETH合约receiveETH合约分别拥有1个ETH

:)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by XdpCs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants