• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision524968c3b01201b00f4c8f2afd524d76b371d316 (tree)
Time2019-11-27 10:57:43
AuthorHAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

minor

Change Summary

Incremental Difference

--- 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