From 90ed07c74e7230ea0f02288b140d497d8b9779e0 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 11 Jan 2020 04:11:55 -0500 Subject: [PATCH] Fixed testcases for provider changes. --- packages/tests/src.ts/test-providers.ts | 3 ++- packages/tests/src.ts/test-wallet.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/tests/src.ts/test-providers.ts b/packages/tests/src.ts/test-providers.ts index 0fa04e404..4c04f7213 100644 --- a/packages/tests/src.ts/test-providers.ts +++ b/packages/tests/src.ts/test-providers.ts @@ -46,7 +46,7 @@ const blockchainData: any = { v: 38, creates: null, raw: "0xf8d2808504a817c8008303d090946fc21092da55b392b045ed78f4732bff3c580e2c880186cc6acd4b0000b864f2c298be000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000067269636d6f6f000000000000000000000000000000000000000000000000000026a01e5605197a03e3f0a168f14749168dfeefc44c9228312dacbffdcbbb13263265a0269c3e5b3558267ad91b0a887d51f9f10098771c67b82ea6cb74f29638754f54", - networkId: 1 + chainId: 1 }, transactionReceipt: { blockHash: "0x36b4af7f0538559e581c8588f16477df0f676439ea67fe8d7a2ae4abb20e2566", @@ -418,6 +418,7 @@ function testProvider(providerName: string, networkName: string) { ["default", "homestead", "ropsten", "rinkeby", "kovan", "goerli"].forEach(function(networkName) { ["getDefaultProvider", "AlchemyProvider", "CloudflareProvider", "InfuraProvider", "EtherscanProvider", "NodesmithProvider", "Web3Provider"].forEach(function(providerName) { + if (providerName === "NodesmithProvider") { return; } if (networkName === "goerli" && providerName === "AlchemyProvider") { return; } if ((networkName !== "homestead" && networkName !== "default") && providerName === "CloudflareProvider") { return; } testProvider(providerName, networkName); diff --git a/packages/tests/src.ts/test-wallet.ts b/packages/tests/src.ts/test-wallet.ts index dee72ff11..ca8680877 100644 --- a/packages/tests/src.ts/test-wallet.ts +++ b/packages/tests/src.ts/test-wallet.ts @@ -253,11 +253,11 @@ describe('Test Signing Messages', function() { describe("Serialize Transactions", function() { it("allows odd-length numeric values", function() { - const result = ethers.utils.serializeTransaction({ + ethers.utils.serializeTransaction({ gasLimit: "0x1", gasPrice: "0x1", value: "0x1" }); - console.log(result); + //console.log(result); }); });