Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: corrects the "value transfer" label, and "to address" in transaction list #5071

Merged
merged 1 commit into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@ module.exports = {
extends: ["prettier", "eslint:recommended", "plugin:react/recommended"],
plugins: ["prettier", "react", "jest", "react-hooks"],
rules: {
"no-prototype-builtins": "warn",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"no-console": "warn",
"react/prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
"react-hooks/exhaustive-deps": "warn",
},
parserOptions: {
"ecmaVersion": 2020,
"sourceType": "module"
ecmaVersion: 2020,
sourceType: "module",
},
env: {
es6: true,
browser: true,
node: true,
mocha: true,
"jest/globals": true
"jest/globals": true,
},
settings: {
react: {
version: "detect"
}
version: "detect",
},
},
parser: "babel-eslint"
parser: "babel-eslint",
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class DestinationAddress extends Component {
const isContractCall =
(this.props.receipt.hasOwnProperty("contractAddress") &&
this.props.receipt.contractAddress !== null) ||
(this.props.tx.to && this.props.tx.input);
(this.props.tx.to && this.props.tx.input !== "0x");

const isContractCreationCall =
this.props.receipt.hasOwnProperty("contractAddress") &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class TransactionTypeBadge extends Component {
);
}

if (this.props.tx.to && this.props.tx.input) {
if (this.props.tx.to && this.props.tx.input !== "0x") {
return (
<div className="TransactionTypeBadge ContractCallBadge">
CONTRACT CALL
Expand Down