Skip to content

Commit

Permalink
Fixed testcases for provider changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 11, 2020
1 parent 245cd0e commit 90ed07c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/tests/src.ts/test-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const blockchainData: any = {
v: 38,
creates: null,
raw: "0xf8d2808504a817c8008303d090946fc21092da55b392b045ed78f4732bff3c580e2c880186cc6acd4b0000b864f2c298be000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000067269636d6f6f000000000000000000000000000000000000000000000000000026a01e5605197a03e3f0a168f14749168dfeefc44c9228312dacbffdcbbb13263265a0269c3e5b3558267ad91b0a887d51f9f10098771c67b82ea6cb74f29638754f54",
networkId: 1
chainId: 1
},
transactionReceipt: {
blockHash: "0x36b4af7f0538559e581c8588f16477df0f676439ea67fe8d7a2ae4abb20e2566",
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/src.ts/test-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 90ed07c

Please sign in to comment.