aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-03 18:53:37 +0800
committerGitHub <noreply@github.com>2018-01-03 18:53:37 +0800
commit1c542c3e0df30eb5522c20e6cb6d577214eaf096 (patch)
tree26cc6e4359df20b564cc251ee154503d22767ec6
parentd46fcb33c5874220d1383ef21353345a99d84cf5 (diff)
parent7422b9b53b72cb236edb7410bdf2a813b3cb523c (diff)
downloaddexon-sol-tools-1c542c3e0df30eb5522c20e6cb6d577214eaf096.tar.gz
dexon-sol-tools-1c542c3e0df30eb5522c20e6cb6d577214eaf096.tar.zst
dexon-sol-tools-1c542c3e0df30eb5522c20e6cb6d577214eaf096.zip
Merge pull request #303 from ERCdEX/ercdex/send_transaction_return_txhash
_sendTransactionAsync should return txHash string
-rw-r--r--packages/subproviders/src/subproviders/ledger.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/subproviders/src/subproviders/ledger.ts b/packages/subproviders/src/subproviders/ledger.ts
index a216b3d74..7267a793e 100644
--- a/packages/subproviders/src/subproviders/ledger.ts
+++ b/packages/subproviders/src/subproviders/ledger.ts
@@ -238,7 +238,7 @@ export class LedgerSubprovider extends Subprovider {
this._ledgerClientIfExists = undefined;
this._connectionLock.signal();
}
- private async _sendTransactionAsync(txParams: PartialTxParams): Promise<Web3.JSONRPCResponsePayload> {
+ private async _sendTransactionAsync(txParams: PartialTxParams): Promise<string> {
await this._nonceLock.wait();
try {
// fill in the extras
@@ -252,7 +252,7 @@ export class LedgerSubprovider extends Subprovider {
};
const result = await this.emitPayloadAsync(payload);
this._nonceLock.signal();
- return result;
+ return result.result;
} catch (err) {
this._nonceLock.signal();
throw err;