Merge pull request #303 from ERCdEX/ercdex/send_transaction_return_txhash
_sendTransactionAsync should return txHash string
This commit is contained in:
commit
1c542c3e0d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user