Skip to content

Commit d9f45b3

Browse files
committedMay 1, 2022

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
 

‎packages/providers/src.ts/ankr-provider.ts

+8
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ function getHost(name: string): string {
1717
switch (name) {
1818
case "homestead":
1919
return "rpc.ankr.com/eth/";
20+
case "ropsten":
21+
return "rpc.ankr.com/eth_ropsten/";
22+
case "rinkeby":
23+
return "rpc.ankr.com/eth_rinkeby/";
24+
case "goerli":
25+
return "rpc.ankr.com/eth_goerli/";
26+
2027
case "matic":
2128
return "rpc.ankr.com/polygon/";
29+
2230
case "arbitrum":
2331
return "rpc.ankr.com/arbitrum/";
2432
}

‎packages/tests/src.ts/test-providers.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const blockchainData: { [ network: string ]: TestCases } = {
113113
}
114114
],
115115
logsBloom: "0x00000000000000040000000000100000010000000000000040000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000200000010000000004000000000000000000000000000000000002000000000000000000000000400000000020000000000000000000000000000000000000004000000000000000000000000000000000000000000000000801000000000000000000000020000000000040000000040000000000000000002000000004000000000000000000000000000000000000000000000010000000000000000000000000000000000200000000000000000",
116-
root: "0x9b550a9a640ce50331b64504ef87aaa7e2aaf97344acb6ff111f879b319d2590",
116+
//root: "0x9b550a9a640ce50331b64504ef87aaa7e2aaf97344acb6ff111f879b319d2590",
117117
status: null,
118118
to: "0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef",
119119
transactionHash: "0xc6fcb7d00d536e659a4559d2de29afa9e364094438fef3e72ba80728ce1cb616",
@@ -351,7 +351,7 @@ const blockchainData: { [ network: string ]: TestCases } = {
351351
}
352352
],
353353
logsBloom: "0x00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
354-
root: "0xf1c3506ab619ac1b5e8f1ca355b16d6b9a1b7436b2960b0e9ec9a91f4238b5cc",
354+
//root: "0xf1c3506ab619ac1b5e8f1ca355b16d6b9a1b7436b2960b0e9ec9a91f4238b5cc",
355355
to: "0x6fC21092DA55B392b045eD78F4732bff3C580e2c",
356356
transactionHash: "0x55c477790b105e69e98afadf0505cbda606414b0187356137132bf24945016ce",
357357
transactionIndex: 0x0
@@ -585,7 +585,7 @@ const providerFunctions: Array<ProviderDescription> = [
585585
},
586586
{
587587
name: "AnkrProvider",
588-
networks: [ "default", "homestead" ],
588+
networks: [ "default", "homestead", "ropsten", "rinkeby" ],
589589
create: (network: string) => {
590590
if (network == "default") {
591591
return new ethers.providers.AnkrProvider(null);
@@ -763,6 +763,7 @@ Object.keys(blockchainData).forEach((network) => {
763763
const hash = test.transactionHash;
764764
addObjectTest(`fetches transaction receipt ${ hash }`, async (provider: ethers.providers.Provider) => {
765765
const receipt = await provider.getTransactionReceipt(hash);
766+
assert.ok(!!receipt, "missing receipt");
766767

767768
if (test.status === null) {
768769
assert.ok(receipt.status === undefined, "no status");

0 commit comments

Comments
 (0)
Please sign in to comment.