-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Transaction to smart contract #76
Conversation
Codecov Report
@@ Coverage Diff @@
## master #76 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 21 21
Lines 1221 1257 +36
Branches 141 156 +15
=====================================
+ Hits 1221 1257 +36
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #76 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 21 21
Lines 1221 1257 +36
Branches 141 156 +15
=====================================
+ Hits 1221 1257 +36
Continue to review full report at Codecov.
|
src/TransactionController.ts
Outdated
@@ -55,7 +63,7 @@ export interface Transaction { | |||
* @property origin - Origin this transaction was sent from | |||
* @property rawTransaction - Hex representation of the underlying transaction | |||
* @property status - String status of this transaction | |||
* @property time - Timestamp associated with this transaction | |||
* @property toSmartContract - Whether transaction receipt is a smart contract |
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.
recipient ?
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.
LGTM!
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/kornelski/http-cache-semantics/releases) - [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: http-cache-semantics dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add issmartcontract code * check if recipient is smart contract when fetching tx * add tests for changes * remove duplicated doc * dont request code if empty data * fix typo * fix condition
* add issmartcontract code * check if recipient is smart contract when fetching tx * add tests for changes * remove duplicated doc * dont request code if empty data * fix typo * fix condition
This PR adds
toSmartContract
attribute toTransactionMeta
object, it shows whether the transaction was sent to a smart contract or not, request that is being done only once when the tx is fetched.This avoids requesting this information (hitting infura) each time we render a transaction or having the audit issue caching this information.