diff --git a/CHANGELOG.md b/CHANGELOG.md index 91a10c7267..3f9918a396 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ - Refresh the `NetworkState` types as returned by the `rpc.system.networkState()` call to current - Expose `registry.createClass()`, to allow for creating type classes. If you are using `createClass` or `ClassOf` in your code, it is recommended to swap to this instance. +# 1.4.2 Feb 27, 2020 + +- Fix `api.tx(): Submittable` decoration (non-working in 1.4.1, now with proper test) + # 1.4.1 Feb 26, 2020 - **Breaking change** (TypeScript only) The `*.d.ts` files now contain TypeScript 3.8 features (specifically `#private`), which is not usable in TS versions < 3.8 diff --git a/lerna.json b/lerna.json index 61d7245731..dc95361e9a 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "1.5.0-beta.5" + "version": "1.4.2" } diff --git a/package.json b/package.json index 4186a84289..dcfc31027c 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@babel/core": "^7.8.4", "@babel/register": "^7.8.3", "@babel/runtime": "^7.8.4", - "@polkadot/dev": "^0.41.4", + "@polkadot/dev": "^0.41.5", "@polkadot/ts": "^0.2.3", "copyfiles": "^2.2.0" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 4e71644d49..f8feb7e268 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/api": "1.5.0-beta.5", - "@polkadot/rpc-core": "1.5.0-beta.5", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/api": "1.4.2", + "@polkadot/rpc-core": "1.4.2", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "bn.js": "^5.1.1", "rxjs": "^6.5.4" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 69becab03f..8a73420f0c 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,10 +28,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/api": "1.5.0-beta.5", - "@polkadot/rpc-core": "1.5.0-beta.5", - "@polkadot/rpc-provider": "1.5.0-beta.5", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/api": "1.4.2", + "@polkadot/rpc-core": "1.4.2", + "@polkadot/rpc-provider": "1.4.2", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "@polkadot/util-crypto": "^2.5.1", "bn.js": "^5.1.1", diff --git a/packages/api/package.json b/packages/api/package.json index 7138a404c1..db4d6a7de5 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,12 +27,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/api-derive": "1.5.0-beta.5", + "@polkadot/api-derive": "1.4.2", "@polkadot/keyring": "^2.5.1", - "@polkadot/metadata": "1.5.0-beta.5", - "@polkadot/rpc-core": "1.5.0-beta.5", - "@polkadot/rpc-provider": "1.5.0-beta.5", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/metadata": "1.4.2", + "@polkadot/rpc-core": "1.4.2", + "@polkadot/rpc-provider": "1.4.2", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "@polkadot/util-crypto": "^2.5.1", "bn.js": "^5.1.1", diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index 6815f3866b..d6cec634c7 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -8,7 +8,7 @@ import { MemberCount, ProposalIndex } from '@polkadot/types/interfaces/collectiv import { CodeHash, Gas, Schedule } from '@polkadot/types/interfaces/contracts'; import { Conviction, PropIndex, Proposal, ReferendumIndex } from '@polkadot/types/interfaces/democracy'; import { Vote } from '@polkadot/types/interfaces/elections'; -import { Signature } from '@polkadot/types/interfaces/extrinsics'; +import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics'; import { IdentityFields, IdentityInfo, IdentityJudgement, RegistrarIndex } from '@polkadot/types/interfaces/identity'; import { Heartbeat } from '@polkadot/types/interfaces/imOnline'; import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment } from '@polkadot/types/interfaces/runtime'; @@ -1624,7 +1624,7 @@ declare module '@polkadot/api/types/submittable' { } export interface SubmittableExtrinsics extends AugmentedSubmittables { - (extrinsic: Uint8Array | string): SubmittableExtrinsic; + (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic; [index: string]: SubmittableModuleExtrinsics; } } diff --git a/packages/api/src/base/Decorate.ts b/packages/api/src/base/Decorate.ts index 5a60d47a46..e78e3396fe 100644 --- a/packages/api/src/base/Decorate.ts +++ b/packages/api/src/base/Decorate.ts @@ -48,7 +48,7 @@ export default abstract class Decorate extends Events protected _derive?: ReturnType['decorateDerive']>; - protected _extrinsics: SubmittableExtrinsics = {} as SubmittableExtrinsics; + protected _extrinsics?: SubmittableExtrinsics; protected _extrinsicType: number = EXTRINSIC_DEFAULT_VERSION; @@ -160,13 +160,19 @@ export default abstract class Decorate extends Events public injectMetadata (metadata: Metadata, fromEmpty?: boolean): void { const decoratedMeta = new DecoratedMeta(this.registry, metadata); + if (fromEmpty || !this._extrinsics) { + this._extrinsics = this.decorateExtrinsics(decoratedMeta.tx, this.decorateMethod); + this._rx.tx = this.decorateExtrinsics(decoratedMeta.tx, this.rxDecorateMethod); + } else { + augmentObject('tx', this.decorateExtrinsics(decoratedMeta.tx, this.decorateMethod), this._extrinsics, false); + augmentObject('', this.decorateExtrinsics(decoratedMeta.tx, this.rxDecorateMethod), this._rx.tx, false); + } + // this API - augmentObject('tx', this.decorateExtrinsics(decoratedMeta.tx, this.decorateMethod), this._extrinsics, fromEmpty); augmentObject('query', this.decorateStorage(decoratedMeta.query, this.decorateMethod), this._query, fromEmpty); augmentObject('consts', decoratedMeta.consts, this._consts, fromEmpty); // rx - augmentObject('', this.decorateExtrinsics(decoratedMeta.tx, this.rxDecorateMethod), this._rx.tx, fromEmpty); augmentObject('', this.decorateStorage(decoratedMeta.query, this.rxDecorateMethod), this._rx.query, fromEmpty); augmentObject('', decoratedMeta.consts, this._rx.consts, fromEmpty); } diff --git a/packages/api/src/promise/Api.spec.ts b/packages/api/src/promise/Api.spec.ts index 1db666a9e1..a6f8a407cd 100644 --- a/packages/api/src/promise/Api.spec.ts +++ b/packages/api/src/promise/Api.spec.ts @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ApiOptions } from '../types'; +import { ApiOptions, SubmittableExtrinsic } from '../types'; import createPair from '@polkadot/keyring/pair'; import testKeyring from '@polkadot/keyring/testing'; @@ -13,6 +13,8 @@ import { hexToU8a } from '@polkadot/util'; import { SingleAccountSigner } from '../../test/util'; import ApiPromise from './Api'; +const TRANSFER_SIG = '0x62bfcd07a9f50ba32ed9e2c41ca11267ac62a24c95949e25efdccc4989d48573f84754dbbaa1d0937ceb888ad8a2cf71daced1545a839d9d6cceac33a5771401'; + describe('ApiPromise', (): void => { const registry = new TypeRegistry(); const keyring = testKeyring({ type: 'ed25519' }); @@ -25,6 +27,23 @@ describe('ApiPromise', (): void => { ); let provider: Mock; + async function createTransfer (): Promise<{ api: ApiPromise; transfer: SubmittableExtrinsic<'promise'> }> { + provider.subscriptions.state_subscribeStorage.lastValue = { + changes: [ + [ + '0x26aa394eea5630e07c48ae0c9558cef79c2f82b23e5fd031fb54c292794b4cc4d560eb8d00e57357cf76492334e43bb2ecaa9f28df6a8c4426d7b6090f7ad3c9', + '0x00' + ] + ] + }; + + const signer = new SingleAccountSigner(registry, aliceEd); + const api = await ApiPromise.create({ provider, registry, signer }); + const transfer = api.tx.balances.transfer(keyring.getPair('0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e').address, 321_564_789_876_512_345n); + + return { api, transfer: await transfer.signAsync(aliceEd.address, {}) }; + } + beforeEach((): void => { jest.setTimeout(3000000); provider = new Mock(registry); @@ -110,24 +129,18 @@ describe('ApiPromise', (): void => { describe('decorator.signAsync', (): void => { it('signs a transfer using an external signer', async (): Promise => { - provider.subscriptions.state_subscribeStorage.lastValue = { - changes: [ - [ - '0x26aa394eea5630e07c48ae0c9558cef79c2f82b23e5fd031fb54c292794b4cc4d560eb8d00e57357cf76492334e43bb2ecaa9f28df6a8c4426d7b6090f7ad3c9', - '0x00' - ] - ] - }; + const { transfer } = await createTransfer(); - const signer = new SingleAccountSigner(registry, aliceEd); - const api = await ApiPromise.create({ provider, registry, signer }); - const transfer = api.tx.balances.transfer(keyring.getPair('0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e').address, 321_564_789_876_512_345n); + expect(transfer.signature.toHex()).toEqual(TRANSFER_SIG); + }); + }); - await transfer.signAsync(aliceEd.address, {}); + describe('api.tx(...)', (): void => { + it('allows construction from existing extrinsic', async (): Promise => { + const { api, transfer } = await createTransfer(); - expect(transfer.signature.toHex()).toEqual( - '0x62bfcd07a9f50ba32ed9e2c41ca11267ac62a24c95949e25efdccc4989d48573f84754dbbaa1d0937ceb888ad8a2cf71daced1545a839d9d6cceac33a5771401' - ); + expect(api.tx(transfer.toHex()).signature.toHex()).toEqual(TRANSFER_SIG); + expect(api.tx(transfer).signature.toHex()).toEqual(TRANSFER_SIG); }); }); }); diff --git a/packages/api/src/submittable/createClass.ts b/packages/api/src/submittable/createClass.ts index 92f4e11c7b..bfe132f518 100644 --- a/packages/api/src/submittable/createClass.ts +++ b/packages/api/src/submittable/createClass.ts @@ -3,7 +3,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { Address, Call, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo } from '@polkadot/types/interfaces'; +import { Address, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo } from '@polkadot/types/interfaces'; import { Callback, Codec, Constructor, IKeyringPair, Registry, SignatureOptions, ISubmittableResult } from '@polkadot/types/types'; import { ApiInterfaceRx, ApiTypes, SignerResult } from '../types'; import { AddressOrPair, SignerOptions, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription, SubmittableThis } from './types'; @@ -31,12 +31,12 @@ const DEFAULT_MORTAL_LENGTH = 5 * ONE_MINUTE; export default function createClass ({ api, apiType, decorateMethod }: SubmittableOptions): Constructor> { // an instance of the base extrinsic for us to extend - const Extrinsic = api.registry.createClass('Extrinsic'); + const ExtrinsicBase = api.registry.createClass('Extrinsic'); - return class Submittable extends Extrinsic implements SubmittableExtrinsic { + return class Submittable extends ExtrinsicBase implements SubmittableExtrinsic { readonly #ignoreStatusCb: boolean; - constructor (registry: Registry, extrinsic: Call | Uint8Array | string) { + constructor (registry: Registry, extrinsic: Call | Extrinsic | Uint8Array | string) { super(registry, extrinsic, { version: api.extrinsicType }); this.#ignoreStatusCb = apiType === 'rxjs'; diff --git a/packages/api/src/submittable/createSubmittable.ts b/packages/api/src/submittable/createSubmittable.ts index 08f4a26ab4..5ee3336947 100644 --- a/packages/api/src/submittable/createSubmittable.ts +++ b/packages/api/src/submittable/createSubmittable.ts @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { Call } from '@polkadot/types/interfaces'; +import { Call, Extrinsic } from '@polkadot/types/interfaces'; import { Constructor } from '@polkadot/types/types'; import { ApiInterfaceRx, ApiTypes } from '../types'; import { SubmittableExtrinsic } from './types'; @@ -15,7 +15,7 @@ type Creator = (extrinsic: Call | Uint8Array | string) let Submittable: Constructor>; export default function createSubmittable (apiType: ApiTypes, api: ApiInterfaceRx, decorateMethod: ApiBase['decorateMethod']): Creator { - return (extrinsic: Call | Uint8Array | string): SubmittableExtrinsic => { + return (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic => { // This is not great, but basically what we do here is to only require the // class right at the point it is actually needed - delaying initialization if (!Submittable) { diff --git a/packages/api/src/submittable/types.ts b/packages/api/src/submittable/types.ts index a746239e07..7fb68419fa 100644 --- a/packages/api/src/submittable/types.ts +++ b/packages/api/src/submittable/types.ts @@ -2,8 +2,8 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AccountId, Address, ExtrinsicStatus, EventRecord, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces'; -import { AnyNumber, AnyU8a, Callback, Codec, IExtrinsic, IExtrinsicEra, IKeyringPair, SignatureOptions, Signer, ISubmittableResult } from '@polkadot/types/types'; +import { AccountId, Address, Extrinsic, ExtrinsicStatus, EventRecord, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces'; +import { AnyNumber, AnyU8a, Callback, Codec, IExtrinsicEra, IKeyringPair, SignatureOptions, Signer, ISubmittableResult } from '@polkadot/types/types'; import { ApiTypes } from '../types'; import { Observable } from 'rxjs'; @@ -43,7 +43,7 @@ export interface SignerOptions { export type AddressOrPair = IKeyringPair | string | AccountId | Address; -export interface SubmittableExtrinsic extends IExtrinsic { +export interface SubmittableExtrinsic extends Extrinsic { paymentInfo (account: AddressOrPair, options?: Partial): SubmittablePaymentResult; send(): SubmittableResultResult; diff --git a/packages/jsonrpc/package.json b/packages/jsonrpc/package.json index e872f0385d..641b396441 100644 --- a/packages/jsonrpc/package.json +++ b/packages/jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "publishConfig": { @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/jsonrpc#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1" } } diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 2948004630..bfa0b19b15 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "@polkadot/util-crypto": "^2.5.1", "bn.js": "^5.1.1" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 5e2908f207..20607cacf0 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,10 +27,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/jsonrpc": "1.5.0-beta.5", - "@polkadot/metadata": "1.5.0-beta.5", - "@polkadot/rpc-provider": "1.5.0-beta.5", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/jsonrpc": "1.4.2", + "@polkadot/metadata": "1.4.2", + "@polkadot/rpc-provider": "1.4.2", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "memoizee": "^0.4.14", "rxjs": "^6.5.4" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index a1e544efe1..0c1a3af4a3 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/jsonrpc": "1.5.0-beta.5", - "@polkadot/metadata": "1.5.0-beta.5", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/jsonrpc": "1.4.2", + "@polkadot/metadata": "1.4.2", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "@polkadot/util-crypto": "^2.5.1", "bn.js": "^5.1.1", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 76627ac08a..af5cd6b582 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,11 +36,11 @@ "@babel/core": "^7.8.3", "@babel/register": "^7.8.3", "@babel/runtime": "^7.8.4", - "@polkadot/api": "1.5.0-beta.5", - "@polkadot/jsonrpc": "1.5.0-beta.5", - "@polkadot/metadata": "1.5.0-beta.5", - "@polkadot/rpc-provider": "1.5.0-beta.5", - "@polkadot/types": "1.5.0-beta.5", + "@polkadot/api": "1.4.2", + "@polkadot/jsonrpc": "1.4.2", + "@polkadot/metadata": "1.4.2", + "@polkadot/rpc-provider": "1.4.2", + "@polkadot/types": "1.4.2", "@polkadot/util": "^2.5.1", "websocket": "^1.0.31", "yargs": "^15.1.0" diff --git a/packages/typegen/src/generate/tx.ts b/packages/typegen/src/generate/tx.ts index 50375b1423..a03a895a23 100644 --- a/packages/typegen/src/generate/tx.ts +++ b/packages/typegen/src/generate/tx.ts @@ -34,9 +34,8 @@ function generateModule (registry: Registry, allDefs: object, { calls, name }: M return []; } - setImports(allDefs, imports, ['SubmittableExtrinsic']); + setImports(allDefs, imports, ['Call', 'Extrinsic', 'SubmittableExtrinsic']); - // NOTE Not removing this concat yet, first see the fallout return [indent(4)(`${stringCamelCase(name.toString())}: {`)] .concat(isStrict ? '' : indent(6)('[index: string]: SubmittableExtrinsicFunction;')) .concat(allCalls.map(({ args, documentation, name }): string => { @@ -87,7 +86,7 @@ function generateForMeta (registry: Registry, meta: Metadata, dest: string, extr const interfaceEnd = `\n${indent(2)('}')}\n\n`; const submittableExtrinsicsInterface = indent(2)('export interface SubmittableExtrinsics extends AugmentedSubmittables {') .concat('\n') - .concat(indent(4)('(extrinsic: Uint8Array | string): SubmittableExtrinsic;\n')) + .concat(indent(4)('(extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic;\n')) .concat(isStrict ? '' : indent(4)('[index: string]: SubmittableModuleExtrinsics;\n')) .concat(indent(2)('}\n')); diff --git a/packages/types/package.json b/packages/types/package.json index 5f22018ece..cbadd6f8bd 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "1.5.0-beta.5", + "version": "1.4.2", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/metadata": "1.5.0-beta.5", + "@polkadot/metadata": "1.4.2", "@polkadot/util": "^2.5.1", "@polkadot/util-crypto": "^2.5.1", "@types/bn.js": "^4.11.6", diff --git a/yarn.lock b/yarn.lock index 2c8cba40eb..78a2214271 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1974,10 +1974,10 @@ dependencies: "@types/node" ">= 8" -"@polkadot/dev@^0.41.4": - version "0.41.4" - resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.41.4.tgz#2322b63858c8ac3f0d835fd52024b45731cf6a18" - integrity sha512-64q7vdVRHpEhoDl0AUcqP1i/f+ith2/2Y4zGxBTVPqf7lXDz1+w/UjLiM01a4J17l1NTjPpC9JQV4m7JOGplpg== +"@polkadot/dev@^0.41.5": + version "0.41.5" + resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.41.5.tgz#5dacffd61d326b16e57bd773aecc370238f92959" + integrity sha512-Aqs13txZeSKdT52rVmP8NMWMW2v8WXOYS/jEuYh7vsnxc3FgloEfdhQJpiLNmxLY2O2zriJL9eUf0DogxHU62w== dependencies: "@babel/cli" "^7.8.4" "@babel/core" "^7.8.4"