【发布时间】:2017-08-10 08:54:14
【问题描述】:
为什么以下不起作用?
uint transactionFee = (msg.value * 2) / 100;
uint transactionReward = (msg.value * 2) / 100;
uint receiverMoney = msg.value - limitTransactionCosts(transactionFee - transactionReward);
The contract won't allow this transaction to be executed
在此过程中:
uint transactionFee = (msg.value * 2) / 100;
uint transactionReward = (msg.value * 2) / 100;
transactionFee = limitTransactionCosts(transactionFee);
transactionReward = limitTransactionCosts(transactionReward);
uint receiverMoney = msg.value - transactionFee - transactionReward;
【问题讨论】: