diff options
author | Luke <lukeautry@gmail.com> | 2018-01-03 12:41:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 12:41:48 +0800 |
commit | 7422b9b53b72cb236edb7410bdf2a813b3cb523c (patch) | |
tree | 2d27bbce502051b2da2651e838574daec57148b0 | |
parent | f684cc371104b594358fb8cd274e453c81f48881 (diff) | |
download | dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.tar dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.tar.gz dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.tar.bz2 dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.tar.lz dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.tar.xz dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.tar.zst dexon-0x-contracts-7422b9b53b72cb236edb7410bdf2a813b3cb523c.zip |
sendTransactionAsync should return txHash string
-rw-r--r-- | packages/subproviders/src/subproviders/ledger.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/subproviders/src/subproviders/ledger.ts b/packages/subproviders/src/subproviders/ledger.ts index a058e09ad..d44d24f82 100644 --- a/packages/subproviders/src/subproviders/ledger.ts +++ b/packages/subproviders/src/subproviders/ledger.ts @@ -233,7 +233,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 @@ -247,7 +247,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; |