• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版524968c3b01201b00f4c8f2afd524d76b371d316 (tree)
时间2019-11-27 10:57:43
作者HAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

minor

更改概述

差异

--- a/application/mov/match/match.go
+++ b/application/mov/match/match.go
@@ -222,7 +222,7 @@ func addMatchTxOutput(txData *types.TxData, txInput *types.TxInput, order *commo
222222 }
223223
224224 func CalcRequestAmount(fromAmount uint64, contractArg *vmutil.MagneticContractArgs) uint64 {
225- res := big.NewInt(int64(fromAmount))
225+ res := big.NewInt(0).SetUint64(fromAmount)
226226 res.Mul(res, big.NewInt(contractArg.RatioNumerator)).Div(res, big.NewInt(contractArg.RatioDenominator))
227227 if !res.IsUint64() {
228228 return 0
Show on old repository browser