src/api.js
/**
     * Executes a multi sig transaction.
     *
     * @param   {String}    identity                                          identity's contract address 
     * @param   {Integer}   transactionId                                     transaction's index 
     * @param   {Object}    [opt={ from: null, gas: null, gasPrice: null }]   transaction options
     * @param   {String}    opt.from                                          set the tx sender
     * @param   {Number}    opt.gas                                           set the tx gas limit
     * @param   {String}    opt.gasPrice                                      set the tx gas price in gwei 
     * @returns {Promise<Object, Error>}                                      A promise that resolves with the transaction object or rejects with an error                          
    */
Executes a multi sig transaction.
Executes a multi sig transaction .
executeTransaction(identity, transactionId, opt = { from: null, gas: null, gasPrice: null }) {
        const from = opt.from ? opt.from : this.defaultOptions.from
        const gas = opt.gas ? opt.gas : this.defaultOptions.gas
        const gasPrice = opt.gasPrice ? opt.gasPrice : this.defaultOptions.gasPrice
        this.MultiSigIdentityContract.options.address = identity
        return this.MultiSigIdentityContract.methods
        .executeTransaction(transactionId)
        .send({ from, gas, gasPrice })
    }
executeTransaction ( identity , transactionId , opt = { from : null , gas : null , gasPrice : null } ) { const from = opt . from ? opt . from : this . defaultOptions . from const gas = opt . gas ? opt . gas : this . defaultOptions . gas const gasPrice = opt . gasPrice ? opt . gasPrice : this . defaultOptions . gasPrice this . MultiSigIdentityContract . options . address = identity return this . MultiSigIdentityContract . methods . executeTransaction ( transactionId ) . send ( { from , gas , gasPrice } ) }
Executes a multi sig transaction.
Executes a multi sig transaction .