• R/O
  • HTTP
  • SSH
  • HTTPS

Bytom-Dapp-Demo: 提交

A simple deposit and profit bytom dapp demo


Commit MetaInfo

修订版5c1b85a63c935e3c1821acf9e45ad9861ddd252e (tree)
时间2019-03-01 14:40:32
作者Zhiting Lin <zlin035@uott...>
CommiterZhiting Lin

Log Message

add the best utxo select for deposit action.

更改概述

差异

--- a/src/components/layout/save/action.js
+++ b/src/components/layout/save/action.js
@@ -4,6 +4,7 @@ import {
44 contractArguments
55 } from '../../bytom'
66 import GetContractArgs from '../../constants'
7+import { matchesUTXO } from '../../filter'
78 import BigNumber from 'bignumber.js'
89
910 export function FixedLimitDeposit(account, amount, address) {
@@ -20,7 +21,7 @@ export function FixedLimitDeposit(account, amount, address) {
2021 throw 'cannot load UTXO info.'
2122 }
2223
23- const result = resp[0]
24+ const result = matchesUTXO(resp, amount)
2425 const billAmount = result.amount
2526 const billAsset = result.asset
2627 const utxo = result.hash
Show on old repository browser