src/api.js
/**
     * Changes the required number of signatures
     * 
     * @param   {String}  identity                                         Identity's contract address  
     * @param   {String}  required                                         new requirement  
     * @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 
     * @memberof Api
     */
Changes the required number of signatures


Changes the required number of signatures
changeRequired(identity, required, 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
        const txData = MultiSigIdentityContract.methods.changeRequired(required).encodeABI()
        return this.MultiSigIdentityContract.methods
        .addTransaction(identity, 0, txData)
        .send({ from, gas, gasPrice })
    }
changeRequired ( identity , required , 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 const txData = MultiSigIdentityContract . methods . changeRequired ( required ) . encodeABI ( ) return this . MultiSigIdentityContract . methods . addTransaction ( identity , 0 , txData ) . send ( { from , gas , gasPrice } ) }
Changes the required number of signatures
Changes the required number of signatures