Fixed testcases for provider changes.

This commit is contained in:
Richard Moore 2020-01-11 04:11:55 -05:00
parent 245cd0e48e
commit 90ed07c74e
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
2 changed files with 4 additions and 3 deletions

@ -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);

@ -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);
});
});