function processLog() {
      // BE CAREFUL! Since strange API of ether.js log passed here as a 'this'.
      const log = this;

      console.log(`[TEST] Coming log ${JSON.stringify(log)}`);

      self.updateNationsFromLogs([{ idInSmartContract: log.args.nationId.toNumber(), txHash: log.transactionHash }])
        .catch((error) => {
          console.log(`[PANGEA] Nation update fails with error ${error.message}`);
        });
    }
/**
     * @desc Function to process log about event on nation contract.
     * @return {void}
     */
@desc Function to process log about event on nation contract.
@return {void}
@desc Function to process log about event on nation contract . @return { void }
function processLog() {
      const log = this;
      console.log(`[TEST] Coming log ${JSON.stringify(log)}`);
      self.updateNationsFromLogs([{ idInSmartContract: log.args.nationId.toNumber(), txHash: log.transactionHash }])
        .catch((error) => {
          console.log(`[PANGEA] Nation update fails with error ${error.message}`);
        });
    }
function processLog ( ) { const log = this ; console . log ( ` ${ JSON . stringify ( log ) } ` ) ; self . updateNationsFromLogs ( [ { idInSmartContract : log . args . nationId . toNumber ( ) , txHash : log . transactionHash } ] ) . catch ( ( error ) => { console . log ( ` ${ error . message } ` ) ; } ) ; }
@desc Function to process log about event on nation contract.
@desc Function to process log about event on nation contract .
// BE CAREFUL! Since strange API of ether.js log passed here as a 'this'.