diff --git a/Action.js b/Action.js index 82b53d8..18650de 100644 --- a/Action.js +++ b/Action.js @@ -1,5 +1,6 @@ -var Ling = require('so.ling') -var ticCrypto = require('tic.crypto') +const Ling = require('so.ling') +const ticCrypto = require('tic.crypto') +const wo = require('./index.js') // 许多地方需要 wo[type] /** ****************** Public of instance ********************/ diff --git a/ActionMultisig.js b/ActionMultisig.js index dc9ac38..6f99b10 100644 --- a/ActionMultisig.js +++ b/ActionMultisig.js @@ -197,6 +197,8 @@ MOM.executeMe = async function () { DAD.pendingPool = {} // 存放所有待签名的多重签名账户交易 +DAD.api = {} + /* 为挂起状态的多重签名交易提供查询服务 */ DAD.api.pendingAction = function (option) { return DAD.pendingPool[option.id] diff --git a/index.js b/index.js index 08a551d..06fe1d8 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -const Action = require('./Action.js') +// const Action = require('./Action.js') // 不要在 index 里引入 Action,避免循环无限引入。 const ActionTransfer = require('./ActionTransfer.js') const ActionStore = require('./ActionStore.js') const ActionMultisig = require('./ActionMultisig.js') @@ -6,10 +6,10 @@ const ActionLockProof = require('./ActionLockProof.js') const ActionTac = require('./ActionTac.js') module.exports = { - Action, +// Action, ActionTransfer, ActionStore, ActionMultisig, ActionLockProof, - ActionTac +// ActionTac } \ No newline at end of file