Skip to content

Commit

Permalink
chore(dep): update polkadot-js api (#998)
Browse files Browse the repository at this point in the history
* chore(api): update polkadot-js api dep

* fix: asError is deprecated. Replace with asErr for ApplyExtrinsicResult interface type
  • Loading branch information
TarikGul committed Aug 1, 2022
1 parent c058904 commit fedfaee
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 191 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"update-pjs-deps": "substrate-update-pjs-deps && yarn"
},
"dependencies": {
"@polkadot/api": "^8.14.1",
"@polkadot/util-crypto": "^10.1.1",
"@polkadot/api": "^9.0.1",
"@polkadot/util-crypto": "^10.1.2",
"@substrate/calc": "^0.2.8",
"argparse": "^2.0.1",
"confmgr": "1.0.9",
Expand Down
6 changes: 3 additions & 3 deletions src/services/transaction/TransactionDryRunService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export class TransactionDryRunService extends AbstractService {
result: applyExtrinsicResult.asOk,
};
} else {
const { asError } = applyExtrinsicResult;
const { asErr } = applyExtrinsicResult;
dryRunResult = {
resultType: TransactionResultType.TransactionValidityError,
result: asError.isInvalid ? asError.asInvalid : asError.asUnknown,
validityErrorType: asError.isInvalid
result: asErr.isInvalid ? asErr.asInvalid : asErr.asUnknown,
validityErrorType: asErr.isInvalid
? ValidityErrorType.Invalid
: ValidityErrorType.Unknown,
};
Expand Down
Loading

0 comments on commit fedfaee

Please sign in to comment.