Skip to content

Commit

Permalink
Dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Kuzyakov committed Oct 7, 2019
1 parent 9123455 commit 08f7443
Show file tree
Hide file tree
Showing 80 changed files with 369 additions and 377 deletions.
10 changes: 1 addition & 9 deletions dist/nearlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,12 +830,6 @@ function fixLegacyBasicExecutionOutcomeFailure(t) {
}
};
}
// Currently FunctionCallError doesn't return logged message in the error.
if (typeof t.outcome.status === 'object' && typeof t.outcome.status.Failure === 'object' &&
t.outcome.status.Failure.error_type === 'ActionError::FunctionCallError') {
t.outcome.status.Failure.error_message = t.outcome.logs.find(it => it.startsWith('ABORT:')) ||
t.outcome.status.Failure.error_message;
}
return t;
}
function adaptTransactionResult(txResult) {
Expand Down Expand Up @@ -875,9 +869,7 @@ function adaptTransactionResult(txResult) {
txResult.transaction = fixLegacyBasicExecutionOutcomeFailure(txResult.transaction);
txResult.receipts = txResult.receipts.map(fixLegacyBasicExecutionOutcomeFailure);
// Fixing master error status
if (txResult.status === FinalExecutionStatusBasic.Failure ||
(typeof txResult.status === 'object' && typeof txResult.status.Failure === 'object' &&
txResult.status.Failure.error_type === 'ActionError::FunctionCallError')) {
if (txResult.status === FinalExecutionStatusBasic.Failure) {
const err = [txResult.transaction, ...txResult.receipts]
.find(t => typeof t.outcome.status === 'object' && typeof t.outcome.status.Failure === 'object')
.outcome.status.Failure;
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.

8 changes: 4 additions & 4 deletions docs/nearlib/classes/_account_creator_.localaccountcreator.md

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

Loading

0 comments on commit 08f7443

Please sign in to comment.