Why TransactionReceipt.to can't be null #2270
Unanswered
shunjizhan
asked this question in
Q&A
Replies: 1 comment
-
Ethers is an abstraction over the RPC. You should not compare them expecting them to be the same. The names and types may not be exactly same. For example in JSON RPC, there is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
in the type definition
TransactionReceipt
must have a stringto
ethers.js/packages/abstract-provider/src.ts/index.ts
Line 106 in b145898
but in eth wiki it says
to
can be null: https://eth.wiki/json-rpc/API#eth_gettransactionreceiptAm I missing anything? And I wonder where can I find the source of truth for all these ETH related type definitions? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions