Adjust exec with SubmittableExtrinsic (#2701)

* Adjust exec with SubmittableExtrinsic

* inputData
This commit is contained in:
Jaco Greeff
2020-10-10 14:25:31 +02:00
committed by GitHub
parent 6f99f0fc26
commit b65b2d7720
4 changed files with 19 additions and 32 deletions
+1 -5
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { ApiTypes, DecorateMethod, SubmittableModuleExtrinsics } from '@polkadot/api/types';
import { ApiTypes, DecorateMethod } from '@polkadot/api/types';
import { AnyJson, Registry } from '@polkadot/types/types';
import { ApiObject } from '../types';
@@ -27,8 +27,4 @@ export default abstract class Base<ApiType extends ApiTypes> {
assert(this.api.rx.tx.contracts && this.api.rx.tx.contracts.putCode, 'You need to connect to a node with the contracts module, the metadata does not enable api.tx.contracts on this instance');
}
protected get _apiContracts (): SubmittableModuleExtrinsics<'rxjs'> {
return this.api.rx.tx.contracts;
}
}