How to use @truffle/core - 1 common examples

To help you get started, we’ve selected a few @truffle/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trufflesuite / truffle / packages / solidity-loader / index.js View on Github external
setTimeout(() => {
      if (compiledContractExists(contractJsonPath)) {
        isCompilingContracts = false;
        returnContractAsSource(contractJsonPath, callback);
      } else {
        waitForContractCompilation();
      }
    }, 500);
  }

  if (isCompilingContracts) {
    // Logger.debug(`Currently compiling = ${this.resourcePath}`)
    waitForContractCompilation();
  } else {
    isCompilingContracts = true;
    truffleMigrator.run(buildOpts, err => {
      isCompilingContracts = false;
      if (err) {
        return callback(err);
      } else {
        return returnContractAsSource(contractJsonPath, callback);
      }
    });
  }
};

@truffle/core

Core code for Truffle command line tool

MIT
Latest version published 1 year ago

Package Health Score

59 / 100
Full package analysis

Popular @truffle/core functions

Similar packages