Skip to content

Commit

Permalink
Rename error
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Kuzyakov committed Oct 9, 2019
1 parent 8f79950 commit a0bd9b2
Show file tree
Hide file tree
Showing 83 changed files with 373 additions and 373 deletions.
2 changes: 1 addition & 1 deletion dist/nearlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Account {
async signAndSendTransaction(receiverId, actions) {
await this.ready;
if (!this._accessKey) {
throw new providers_1.TypedError(`Can not sign transactions, initialize account with available public key in Signer.`, 'CantSignError');
throw new providers_1.TypedError(`Can not sign transactions, initialize account with available public key in Signer.`, 'KeyNotFound');
}
const status = await this.connection.provider.status();
const [txHash, signedTx] = await transaction_1.signTransaction(receiverId, ++this._accessKey.nonce, actions, serialize_1.base_decode(status.sync_info.latest_block_hash), this.connection.signer, this.accountId, this.connection.networkId);
Expand Down
2 changes: 1 addition & 1 deletion dist/nearlib.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions docs/nearlib/classes/_account_.account.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/nearlib/classes/_account_creator_.accountcreator.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a0bd9b2

Please sign in to comment.