OSDN Git Service

add txid for updateBalances purporse.
authorZhiting Lin <zlin035@uottawa.ca>
Wed, 20 Feb 2019 06:21:08 +0000 (14:21 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Wed, 20 Feb 2019 06:21:08 +0000 (14:21 +0800)
src/components/layout/profit/action.js
src/components/layout/save/action.js

index 39b5217..ccbcfc1 100644 (file)
@@ -50,11 +50,13 @@ export function FixedLimitProfit(account, amountBill, saver) {
               updateUtxo({"hash": utxo})
                 .then(()=>{
                   updateBalances({
+                    "tx_id": resp.message.result.data.transaction_hash,
                     "address": saver,
                     "asset": GetContractArgs().assetDeposited,
                     "amount": amountBill*GetContractArgs().totalAmountCapital/GetContractArgs().totalAmountBill
                   }).then(()=>{
                     updateBalances({
+                      "tx_id": resp.message.result.data.transaction_hash,
                       "address": account.address,
                       "asset": GetContractArgs().assetBill,
                       "amount": -amountBill
index 19ec4fa..4f0acd8 100644 (file)
@@ -47,11 +47,13 @@ export function FixedLimitDeposit(account, amount, address) {
               updateUtxo({"hash": utxo})
                 .then(()=>{
                   updateBalances({
+                    "tx_id": resp.message.result.data.transaction_hash,
                     address,
                     "asset": GetContractArgs().assetDeposited,
                     "amount": -amount
                   }).then(()=>{
                     updateBalances({
+                      "tx_id": resp.message.result.data.transaction_hash,
                       address,
                       "asset": GetContractArgs().assetBill,
                       "amount": amount