UNPKG

480 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.createSubmittable = void 0;
4const createClass_js_1 = require("./createClass.js");
5function createSubmittable(apiType, api, decorateMethod, registry, blockHash) {
6 const Submittable = (0, createClass_js_1.createClass)({ api, apiType, blockHash, decorateMethod });
7 return (extrinsic) => new Submittable(registry || api.registry, extrinsic);
8}
9exports.createSubmittable = createSubmittable;