From 89c1ef554749adcd28e6e15115beba0117229a21 Mon Sep 17 00:00:00 2001 From: lovelycs <419579547@qq.com> Date: Tue, 20 Nov 2018 13:41:47 +0800 Subject: [PATCH] block hash --- package.json | 2 +- src/Wallet/account.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8298b7c2..78cc3405 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vite/vitejs", - "version": "0.0.1-1", + "version": "0.0.1-2", "description": "", "main": "dist/es5/src/index.js", "scripts": { diff --git a/src/Wallet/account.js b/src/Wallet/account.js index ca1259b1..fceeac39 100644 --- a/src/Wallet/account.js +++ b/src/Wallet/account.js @@ -59,7 +59,9 @@ class Account { accountBlock.publicKey = Buffer.from(pubKey).toString('base64'); accountBlock.signature = Buffer.from(signature).toString('base64'); - return this.Vite['tx_sendRawTx'](accountBlock); + return this.Vite['tx_sendRawTx'](accountBlock).then(() => { + return accountBlock; + }); } encrypt(key, pwd, scryptP) {