-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: return proper transaction receipt #293
Conversation
Codecov Report
@@ Coverage Diff @@
## master #293 +/- ##
==========================================
+ Coverage 94.2% 94.22% +0.01%
==========================================
Files 63 65 +2
Lines 932 935 +3
Branches 175 174 -1
==========================================
+ Hits 878 881 +3
Misses 49 49
Partials 5 5
Continue to review full report at Codecov.
|
666cf42
to
a2595a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny change required. 🌮
contractAddress: null, | ||
logs: [], | ||
logsBloom: '0x', | ||
status: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a hex string (according web3 docs and geth code)
from = prevTx.outputs[outputIndex].address; | ||
} | ||
} | ||
const prevTx = await getPrevTx(db, tx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
72e6332
to
fb9b87c
Compare
Resolves #256
Requires:
Attempt to properly implement getTransactionReceipt RPC.
As a result, no hacks should be needed anymore for sending transactions.
Web3:
Ethers requires a special provider due to strict checks: