async loadMigration(alias) {
    const migrationLog = JSON.parse(fs.readFileSync('migration-log.json', 'utf8'));
    
    const aliasName = alias === undefined ? this.name : alias;
    
    if (migrationLog[aliasName] !== undefined) {
      this.address = migrationLog[aliasName].address;
    } else {
      throw new Error(`Contract ${aliasName} not found in the migration`);
    }
  }
/**
   * Check migration applied on this contract so address already exists
   * @dev load 'address' attribute from the migration-log.json file
   * @param alias Alias of the contract. If not specified - contract name is used
   * @returns {Promise<void>}
   */
Check migration applied on this contract so address already exists
@dev load 'address' attribute from the migration-log.json file
@param alias Alias of the contract. If not specified - contract name is used
@returns {Promise}
Check migration applied on this contract so address already exists @dev load ' address ' attribute from the migration - log . json file @param alias Alias of the contract . If not specified - contract name is used @returns { Promise }
async loadMigration(alias) {
    const migrationLog = JSON.parse(fs.readFileSync('migration-log.json', 'utf8'));
    const aliasName = alias === undefined ? this.name : alias;
    if (migrationLog[aliasName] !== undefined) {
      this.address = migrationLog[aliasName].address;
    } else {
      throw new Error(`Contract ${aliasName} not found in the migration`);
    }
  }
async loadMigration ( alias ) { const migrationLog = JSON . parse ( fs . readFileSync ( 'migration-log.json' , 'utf8' ) ) ; const aliasName = alias === undefined ? this . name : alias ; if ( migrationLog [ aliasName ] !== undefined ) { this . address = migrationLog [ aliasName ] . address ; } else { throw new Error ( ` ${ aliasName } ` ) ; } }
Check migration applied on this contract so address already exists
 @dev load 'address' attribute from the migration-log.json file
 @param alias Alias of the contract.
Check migration applied on this contract so address already exists @dev load ' address ' attribute from the migration - log . json file @param alias Alias of the contract .