diff --git a/misc/ReactNativeTestApp/libs/.gitignore b/misc/ReactNativeTestApp/libs/.gitignore new file mode 100644 index 0000000000..a6c7c2852d --- /dev/null +++ b/misc/ReactNativeTestApp/libs/.gitignore @@ -0,0 +1 @@ +*.js diff --git a/misc/admin/lib/cmds/update-hashes.js b/misc/admin/lib/cmds/update-hashes.js index e94c3d26d5..f7fa845607 100644 --- a/misc/admin/lib/cmds/update-hashes.js +++ b/misc/admin/lib/cmds/update-hashes.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -const git_1 = require("../git"); +//import { getGitTag } from "../git"; const local_1 = require("../local"); const log_1 = require("../log"); const path_1 = require("../path"); @@ -20,9 +20,9 @@ const path_1 = require("../path"); for (let i = 0; i < path_1.dirnames.length; i++) { progress(i / path_1.dirnames.length); const dirname = path_1.dirnames[i]; - const gitHead = yield git_1.getGitTag(path_1.resolve("packages", dirname)); + //const gitHead = await getGitTag(resolve("packages", dirname)); const tarballHash = local_1.computeTarballHash(dirname); - local_1.updateJson(path_1.getPackageJsonPath(dirname), { gitHead, tarballHash }, true); + local_1.updateJson(path_1.getPackageJsonPath(dirname), { tarballHash }, true); } progress(1); }); diff --git a/misc/admin/src.ts/cmds/update-hashes.ts b/misc/admin/src.ts/cmds/update-hashes.ts index 57210dcdc9..b2f7177212 100644 --- a/misc/admin/src.ts/cmds/update-hashes.ts +++ b/misc/admin/src.ts/cmds/update-hashes.ts @@ -1,7 +1,7 @@ -import { getGitTag } from "../git"; +//import { getGitTag } from "../git"; import { computeTarballHash, updateJson } from "../local"; import { colorify, getProgressBar } from "../log"; -import { dirnames, getPackageJsonPath, resolve } from "../path"; +import { dirnames, getPackageJsonPath } from "../path"; (async function() { const progress = getProgressBar(colorify.bold("Updating package.json hashes")); @@ -12,10 +12,10 @@ import { dirnames, getPackageJsonPath, resolve } from "../path"; const dirname = dirnames[i]; - const gitHead = await getGitTag(resolve("packages", dirname)); + //const gitHead = await getGitTag(resolve("packages", dirname)); const tarballHash = computeTarballHash(dirname); - updateJson(getPackageJsonPath(dirname), { gitHead, tarballHash }, true); + updateJson(getPackageJsonPath(dirname), { tarballHash }, true); } progress(1); diff --git a/packages/abi/package.json b/packages/abi/package.json index 94402e2646..5cb48d7816 100644 --- a/packages/abi/package.json +++ b/packages/abi/package.json @@ -13,7 +13,6 @@ }, "description": "Utilities and Classes for parsing, formatting and managing Ethereum ABIs.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/abstract-provider/package.json b/packages/abstract-provider/package.json index c4c726de4a..47006ae073 100644 --- a/packages/abstract-provider/package.json +++ b/packages/abstract-provider/package.json @@ -11,7 +11,6 @@ }, "description": "An Abstract Class for describing an Ethereum Provider for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/abstract-signer/package.json b/packages/abstract-signer/package.json index 273b20585c..8f54143eb3 100644 --- a/packages/abstract-signer/package.json +++ b/packages/abstract-signer/package.json @@ -9,7 +9,6 @@ }, "description": "An Abstract Class for desribing an Ethereum Signer for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/address/package.json b/packages/address/package.json index 7a73f1a796..b0c9eb5c65 100644 --- a/packages/address/package.json +++ b/packages/address/package.json @@ -10,7 +10,6 @@ }, "description": "Utilities for handling Ethereum Addresses for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/asm/package.json b/packages/asm/package.json index 963601d28a..29282de571 100644 --- a/packages/asm/package.json +++ b/packages/asm/package.json @@ -5,7 +5,6 @@ }, "description": "ASM libraries and tools for the Ethereum EVM.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "asm", diff --git a/packages/base64/package.json b/packages/base64/package.json index 1dcbf688eb..3687a3ba62 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -8,7 +8,6 @@ }, "description": "Base64 coder.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/basex/package.json b/packages/basex/package.json index dfaf0628e4..ea5bdb3bd9 100644 --- a/packages/basex/package.json +++ b/packages/basex/package.json @@ -6,7 +6,6 @@ }, "description": "Base-X without Buffer.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/bignumber/package.json b/packages/bignumber/package.json index 6db2887f64..b1e6d78fbf 100644 --- a/packages/bignumber/package.json +++ b/packages/bignumber/package.json @@ -7,7 +7,6 @@ }, "description": "BigNumber library used in ethers.js.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "bignumber", diff --git a/packages/bytes/package.json b/packages/bytes/package.json index 518f9fbd6b..2d829be792 100644 --- a/packages/bytes/package.json +++ b/packages/bytes/package.json @@ -5,7 +5,6 @@ }, "description": "Bytes utility functions for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/cli/lib.esm/solc.js b/packages/cli/lib.esm/solc.js index 80bd22b84c..daac8695c1 100644 --- a/packages/cli/lib.esm/solc.js +++ b/packages/cli/lib.esm/solc.js @@ -47,8 +47,8 @@ function _compile(_solc, source, options) { throw new Error("unknown version"); } const version = parseFloat(ver[2] + "." + ver[3]); - //if (version < 4.11 || version >= 7) { - if (version < 5.0 || version >= 7.0) { + //if (version < 4.11 || version >= 8) { + if (version < 5.0 || version >= 8.0) { throw new Error(`unsupported version: ${ver[1]}.${ver[2]}.${ver[3]}`); } options = populateOptions(options); diff --git a/packages/cli/lib/solc.js b/packages/cli/lib/solc.js index fbf96b0690..c0a021a3f4 100644 --- a/packages/cli/lib/solc.js +++ b/packages/cli/lib/solc.js @@ -51,8 +51,8 @@ function _compile(_solc, source, options) { throw new Error("unknown version"); } var version = parseFloat(ver[2] + "." + ver[3]); - //if (version < 4.11 || version >= 7) { - if (version < 5.0 || version >= 7.0) { + //if (version < 4.11 || version >= 8) { + if (version < 5.0 || version >= 8.0) { throw new Error("unsupported version: " + ver[1] + "." + ver[2] + "." + ver[3]); } options = populateOptions(options); diff --git a/packages/cli/package.json b/packages/cli/package.json index 2c4d45a47e..40182bc9b6 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -19,7 +19,6 @@ }, "description": "Command-Line Interface scripts and releated utilities.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", @@ -39,7 +38,7 @@ "scripts": { "test": "exit 1" }, - "tarballHash": "0xad49d7dce8e8e73a60406dcdfcc2ec6038de876663cf508f929feed975c29f3b", + "tarballHash": "0xe7e54bdcfdf154ef9e94945a34f84b41c2aca0cf642479c4da9457f5b20e73f5", "types": "./lib/index.d.ts", "version": "5.0.5" } diff --git a/packages/constants/package.json b/packages/constants/package.json index dfa463b8c1..b7e4ba5c3a 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -5,7 +5,6 @@ }, "description": "Common Ethereum constants used for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 4bcb845bd8..5c03d43b4c 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -13,7 +13,6 @@ }, "description": "Contract abstraction meta-class for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/ethers/package.json b/packages/ethers/package.json index 6635736316..283b58d87d 100644 --- a/packages/ethers/package.json +++ b/packages/ethers/package.json @@ -35,7 +35,6 @@ }, "description": "Umbrella package for most common Ethers libraries.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/experimental/package.json b/packages/experimental/package.json index 40a2bfbfa9..a53d473425 100644 --- a/packages/experimental/package.json +++ b/packages/experimental/package.json @@ -7,7 +7,6 @@ }, "description": "Experimental libraries for ethers. These should not be considered stable.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/hardware-wallets/package.json b/packages/hardware-wallets/package.json index c47d28a004..33c56e32c7 100644 --- a/packages/hardware-wallets/package.json +++ b/packages/hardware-wallets/package.json @@ -20,7 +20,6 @@ }, "description": "Hardware Wallet support for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", diff --git a/packages/hash/package.json b/packages/hash/package.json index 39e82b4c4b..c4ab4908a2 100644 --- a/packages/hash/package.json +++ b/packages/hash/package.json @@ -8,7 +8,6 @@ }, "description": "Hash utility functions for Ethereum.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/hdnode/package.json b/packages/hdnode/package.json index ddff475806..1185b3cb53 100644 --- a/packages/hdnode/package.json +++ b/packages/hdnode/package.json @@ -16,7 +16,6 @@ }, "description": "BIP32 Hierarchal Deterministic Node operations.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/json-wallets/package.json b/packages/json-wallets/package.json index b62756f117..c8e6b737cb 100644 --- a/packages/json-wallets/package.json +++ b/packages/json-wallets/package.json @@ -17,7 +17,6 @@ }, "description": "Wallet management utilities for KeyStore and Crowdsale JSON wallets.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/keccak256/package.json b/packages/keccak256/package.json index 8339014a1c..7f0e931ff0 100644 --- a/packages/keccak256/package.json +++ b/packages/keccak256/package.json @@ -6,7 +6,6 @@ }, "description": "The keccak256 hash function for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/logger/package.json b/packages/logger/package.json index c8b989a8ab..6a33db1203 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -2,7 +2,6 @@ "author": "Richard Moore ", "description": "Logger utility functions for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/networks/package.json b/packages/networks/package.json index 0a7d5944ee..83bfc9123e 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -5,7 +5,6 @@ }, "description": "Network definitions for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/pbkdf2/package.json b/packages/pbkdf2/package.json index 337e4d519a..606c33858c 100644 --- a/packages/pbkdf2/package.json +++ b/packages/pbkdf2/package.json @@ -9,7 +9,6 @@ }, "description": "The PBKDF2 password-pbased key derivation function for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", diff --git a/packages/properties/package.json b/packages/properties/package.json index a702046b51..ff7d978c05 100644 --- a/packages/properties/package.json +++ b/packages/properties/package.json @@ -5,7 +5,6 @@ }, "description": "Properties utility functions for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/providers/package.json b/packages/providers/package.json index 9957b68c28..375f00fd23 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -38,7 +38,6 @@ }, "description": "Ethereum Providers for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/random/package.json b/packages/random/package.json index 2edd421d07..4ee57c88c7 100644 --- a/packages/random/package.json +++ b/packages/random/package.json @@ -9,7 +9,6 @@ }, "description": "Random utility functions for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", diff --git a/packages/rlp/package.json b/packages/rlp/package.json index 3d1b8403a8..1b422d6e53 100644 --- a/packages/rlp/package.json +++ b/packages/rlp/package.json @@ -6,7 +6,6 @@ }, "description": "Recursive-Length Prefix (RLP) coder.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", diff --git a/packages/sha2/package.json b/packages/sha2/package.json index 3b6d3d4122..3318332f26 100644 --- a/packages/sha2/package.json +++ b/packages/sha2/package.json @@ -10,7 +10,6 @@ }, "description": "The SHA2 family hash functions and HMAC functions for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/shims/package.json b/packages/shims/package.json index 4226325cf3..df77afc55e 100644 --- a/packages/shims/package.json +++ b/packages/shims/package.json @@ -4,7 +4,6 @@ "browser": "./dist/index.min.js", "description": "Shims required for ethers in constrained environments.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/signing-key/package.json b/packages/signing-key/package.json index e0158cfa70..3662d0219f 100644 --- a/packages/signing-key/package.json +++ b/packages/signing-key/package.json @@ -8,7 +8,6 @@ }, "description": "Elliptic curve library functions for the secp256k1 curve.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/solidity/package.json b/packages/solidity/package.json index 433ab63bde..a9378b66ad 100644 --- a/packages/solidity/package.json +++ b/packages/solidity/package.json @@ -9,7 +9,6 @@ }, "description": "Solidity coder for non-standard (tight) packing.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/strings/package.json b/packages/strings/package.json index 5a6c32735f..bce6082702 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -7,7 +7,6 @@ }, "description": "String utility functions.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", diff --git a/packages/testcases/package.json b/packages/testcases/package.json index c9499719c1..4e0d365665 100644 --- a/packages/testcases/package.json +++ b/packages/testcases/package.json @@ -22,7 +22,6 @@ }, "description": "Testcases for Ethereum and scripts to generate testcases.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/tests/lib.esm/test-solc.js b/packages/tests/lib.esm/test-solc.js index fbd5ec7f3c..8868c1bb6b 100644 --- a/packages/tests/lib.esm/test-solc.js +++ b/packages/tests/lib.esm/test-solc.js @@ -8,12 +8,18 @@ describe('Test solc', function () { this.timeout(1200000); const filename = resolve(__dirname, '../contracts/test-solc/consumer.sol'); const source = fs.readFileSync(filename).toString(); - const code = solc.compile(source, { filename, optimize: true }) - .filter(((contract) => contract.name === 'Consumer'))[0]; - const { bytecode, interface: iface } = code; - assert(bytecode.length > 2, 'The bytecode should should have a length'); - assert(bytecode.startsWith('0x'), 'The bytecode should start with 0x'); - assert(iface.functions['f()'], 'The interface should have function f()'); + try { + const code = solc.compile(source, { filename, optimize: true }) + .filter(((contract) => contract.name === 'Consumer'))[0]; + const { bytecode, interface: iface } = code; + assert(bytecode.length > 2, 'The bytecode should should have a length'); + assert(bytecode.startsWith('0x'), 'The bytecode should start with 0x'); + assert(iface.functions['f()'], 'The interface should have function f()'); + } + catch (error) { + console.log(error); + throw error; + } }); }); //# sourceMappingURL=test-solc.js.map \ No newline at end of file diff --git a/packages/tests/lib.esm/test-solc.js.map b/packages/tests/lib.esm/test-solc.js.map index a3fc930074..6ddc0a05c9 100644 --- a/packages/tests/lib.esm/test-solc.js.map +++ b/packages/tests/lib.esm/test-solc.js.map @@ -1 +1 @@ -{"version":3,"file":"test-solc.js","sourceRoot":"","sources":["../src.ts/test-solc.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,QAAQ,CAAC,WAAW,EAAE;IAElB,EAAE,CAAC,0CAA0C,EAAE;QAC3C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtB,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,qCAAqC,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAC1D,MAAM,CAAC,CAAC,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAC5C,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,0CAA0C,CAAC,CAAC;QACxE,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;QACvE,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,wCAAwC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"test-solc.js","sourceRoot":"","sources":["../src.ts/test-solc.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,QAAQ,CAAC,WAAW,EAAE;IAElB,EAAE,CAAC,0CAA0C,EAAE;QAC3C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtB,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,qCAAqC,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpD,IAAI;YACA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;iBAC1D,MAAM,CAAC,CAAC,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;YAC5C,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,0CAA0C,CAAC,CAAC;YACxE,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;YACvE,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,wCAAwC,CAAC,CAAC;SAC5E;QAAC,OAAO,KAAK,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,MAAM,KAAK,CAAC;SACf;IACL,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/tests/lib/test-solc.js b/packages/tests/lib/test-solc.js index 483b5e3119..8a121d0a3e 100644 --- a/packages/tests/lib/test-solc.js +++ b/packages/tests/lib/test-solc.js @@ -12,12 +12,18 @@ describe('Test solc', function () { this.timeout(1200000); var filename = path_1.resolve(__dirname, '../contracts/test-solc/consumer.sol'); var source = fs_1.default.readFileSync(filename).toString(); - var code = cli_1.solc.compile(source, { filename: filename, optimize: true }) - .filter((function (contract) { return contract.name === 'Consumer'; }))[0]; - var bytecode = code.bytecode, iface = code.interface; - assert_1.default(bytecode.length > 2, 'The bytecode should should have a length'); - assert_1.default(bytecode.startsWith('0x'), 'The bytecode should start with 0x'); - assert_1.default(iface.functions['f()'], 'The interface should have function f()'); + try { + var code = cli_1.solc.compile(source, { filename: filename, optimize: true }) + .filter((function (contract) { return contract.name === 'Consumer'; }))[0]; + var bytecode = code.bytecode, iface = code.interface; + assert_1.default(bytecode.length > 2, 'The bytecode should should have a length'); + assert_1.default(bytecode.startsWith('0x'), 'The bytecode should start with 0x'); + assert_1.default(iface.functions['f()'], 'The interface should have function f()'); + } + catch (error) { + console.log(error); + throw error; + } }); }); //# sourceMappingURL=test-solc.js.map \ No newline at end of file diff --git a/packages/tests/lib/test-solc.js.map b/packages/tests/lib/test-solc.js.map index 50718a31cf..5b102e89bd 100644 --- a/packages/tests/lib/test-solc.js.map +++ b/packages/tests/lib/test-solc.js.map @@ -1 +1 @@ -{"version":3,"file":"test-solc.js","sourceRoot":"","sources":["../src.ts/test-solc.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,kDAA4B;AAC5B,6BAA+B;AAC/B,0CAAoB;AACpB,0CAA0C;AAE1C,QAAQ,CAAC,WAAW,EAAE;IAElB,EAAE,CAAC,0CAA0C,EAAE;QAC3C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtB,IAAM,QAAQ,GAAG,cAAO,CAAC,SAAS,EAAE,qCAAqC,CAAC,CAAC;QAC3E,IAAM,MAAM,GAAG,YAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpD,IAAM,IAAI,GAAG,UAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,UAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAC1D,MAAM,CAAC,CAAC,UAAC,QAAa,IAAK,OAAA,QAAQ,CAAC,IAAI,KAAK,UAAU,EAA5B,CAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,IAAA,wBAAQ,EAAE,sBAAgB,CAAU;QAC5C,gBAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,0CAA0C,CAAC,CAAC;QACxE,gBAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;QACvE,gBAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,wCAAwC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"test-solc.js","sourceRoot":"","sources":["../src.ts/test-solc.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,kDAA4B;AAC5B,6BAA+B;AAC/B,0CAAoB;AACpB,0CAA0C;AAE1C,QAAQ,CAAC,WAAW,EAAE;IAElB,EAAE,CAAC,0CAA0C,EAAE;QAC3C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtB,IAAM,QAAQ,GAAG,cAAO,CAAC,SAAS,EAAE,qCAAqC,CAAC,CAAC;QAC3E,IAAM,MAAM,GAAG,YAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpD,IAAI;YACA,IAAM,IAAI,GAAG,UAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,UAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;iBAC1D,MAAM,CAAC,CAAC,UAAC,QAAa,IAAK,OAAA,QAAQ,CAAC,IAAI,KAAK,UAAU,EAA5B,CAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1D,IAAA,wBAAQ,EAAE,sBAAgB,CAAU;YAC5C,gBAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,0CAA0C,CAAC,CAAC;YACxE,gBAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;YACvE,gBAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,wCAAwC,CAAC,CAAC;SAC5E;QAAC,OAAO,KAAK,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,MAAM,KAAK,CAAC;SACf;IACL,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/tests/package.json b/packages/tests/package.json index 081b70c68c..e2afddf8c3 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -17,7 +17,6 @@ }, "description": "Testing package for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" @@ -36,7 +35,7 @@ "scripts": { "test": "exit 1" }, - "tarballHash": "0x93d635b41e3952f67e2bace71f0583c4e40f642bedd17cb53e4d9c8f17b42f56", + "tarballHash": "0x50f6bae588a3a265af916d19c220662855bca4c655d2eadbcd2c7bdb985d1118", "types": "./lib/index.d.ts", "version": "5.0.9" } diff --git a/packages/transactions/package.json b/packages/transactions/package.json index 84293ab468..259ce44231 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -13,7 +13,6 @@ }, "description": "Utilities for decoding and encoding Ethereum transaction for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/units/package.json b/packages/units/package.json index 7d70b84b8d..362c38edce 100644 --- a/packages/units/package.json +++ b/packages/units/package.json @@ -7,7 +7,6 @@ }, "description": "Unit conversion functions for Ethereum.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers", diff --git a/packages/wallet/package.json b/packages/wallet/package.json index afbe6df366..614570fa56 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -19,7 +19,6 @@ }, "description": "Classes for managing, encrypting and decrypting Ethereum private keys as a Signer for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/web/package.json b/packages/web/package.json index 448ffa0736..6c1f9bd090 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -18,7 +18,6 @@ }, "description": "Utility fucntions for managing web requests for ethers.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers" diff --git a/packages/wordlists/package.json b/packages/wordlists/package.json index 9edb8a8eb3..5dee79c1e9 100644 --- a/packages/wordlists/package.json +++ b/packages/wordlists/package.json @@ -12,7 +12,6 @@ }, "description": "Word lists for BIP39 wallets.", "ethereum": "donations.ethers.eth", - "gitHead": "261eb04e97cdc1ff11e4716e9c7f421d681aceb1", "keywords": [ "Ethereum", "ethers"