17 lines
557 B
TypeScript
17 lines
557 B
TypeScript
// Copyright 2017-2021 @polkadot/api-contract authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { ApiPromise } from '@polkadot/api';
|
|
import type { AnyJson } from '@polkadot/types/types';
|
|
|
|
import { decorateMethodPromise } from '@polkadot/api';
|
|
|
|
import { Abi } from '../Abi';
|
|
import { Code as BaseCode } from '../base';
|
|
|
|
export class Code extends BaseCode<'promise'> {
|
|
constructor (api: ApiPromise, abi: AnyJson | Abi, wasm: Uint8Array | string | Buffer | null | undefined) {
|
|
super(api, abi, wasm, decorateMethodPromise);
|
|
}
|
|
}
|