updated error msg

This commit is contained in:
MarcZenn
2018-12-31 11:21:47 -08:00
parent 9edb5dae88
commit 0010ca3e03

View File

@@ -86,7 +86,7 @@ export class TrezorSubprovider extends BaseWalletSubprovider {
const accountIndex = this._cachedAccounts.indexOf(txData.from);
if (accountIndex === -1) {
throw new Error(WalletSubproviderErrors.AddressNotFound);
throw new Error(WalletSubproviderErrors.FromAddressMissingOrInvalid);
}
const response: TrezorConnectResponse = await this._trezorConnectClientApi.ethereumSignTransaction({
path: `${this._privateKeyPath}/${accountIndex}`,