@polkadot/api
Version:
Promise and RxJS wrappers around the Polkadot JS RPC
10 lines (9 loc) • 480 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSubmittable = void 0;
const createClass_js_1 = require("./createClass.js");
function createSubmittable(apiType, api, decorateMethod, registry, blockHash) {
const Submittable = (0, createClass_js_1.createClass)({ api, apiType, blockHash, decorateMethod });
return (extrinsic) => new Submittable(registry || api.registry, extrinsic);
}
exports.createSubmittable = createSubmittable;
;