Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Display 0x00..00 as null #3950

Merged
merged 2 commits into from
Dec 22, 2016
Merged

Display 0x00..00 as null #3950

merged 2 commits into from
Dec 22, 2016

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Dec 22, 2016

Display for 0x0000...0000 address

@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. M7-ui A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 22, 2016
@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Dec 22, 2016
@@ -62,6 +63,7 @@ class InputAddress extends Component {
classes.push(!icon ? styles.inputEmpty : styles.input);

const containerClasses = [ styles.container ];
const nullName = new BigNumber(value).eq(0) ? 'null' : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer isNull or isZero here.

);
} else if (new BigNumber(address).eq(0)) {
return (
<div
Copy link
Contributor

@derhuerst derhuerst Dec 22, 2016

Choose a reason for hiding this comment

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

black-hole

I'd consider something more helpful here, e.g. material-ui/svg-icons/content/clear. cc @gavofyork #3908

clear

@derhuerst derhuerst added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 22, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 85.767% when pulling 7a23bbf on jg-blackhole into be75cbf on master.

@gavofyork gavofyork merged commit 077069c into master Dec 22, 2016
@gavofyork gavofyork deleted the jg-blackhole branch December 22, 2016 17:31
jacogr added a commit that referenced this pull request Jan 2, 2017
@jacogr jacogr mentioned this pull request Jan 2, 2017
jacogr added a commit that referenced this pull request Jan 5, 2017
* Update blockStatus & test results

* IdentityIcon rendering tests for #3950

* Update IdentityName with external messages

* Expand to cover basic layout sections

* ConfirmDialog rendering tests

* TxHash expansion & tests

* Cleanup ui/*.spec.js PropType warnings

* Use react-intl plural for confirmation/confirmations (verified manually)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants