2018-07-23 10:02:39 +03:00
|
|
|
var assert = require('assert');
|
|
|
|
|
|
|
|
function getEthers(filename) {
|
|
|
|
var ethers = global.ethers
|
|
|
|
if (!ethers) { return undefined; }
|
|
|
|
console.log('Using global ethers; ' + filename);
|
2018-07-23 12:38:27 +03:00
|
|
|
assert.equal(ethers.platform, 'browser', 'platform: ' + ethers.platform + ' != "browser"');
|
2018-07-23 10:02:39 +03:00
|
|
|
return ethers;
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = getEthers;
|