Skip to content

Commit

Permalink
feat: check for paritys empty address, reported as 0x (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo authored and abarmat committed Mar 22, 2018
1 parent 90ed90e commit ef38658
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ethereum/Contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export class Contract {
* @return {boolean}
*/
static isEmptyAddress(address) {
return !address || address === '0x0000000000000000000000000000000000000000'
return (
!address ||
address === '0x0000000000000000000000000000000000000000' ||
address === '0x'
)
}

/**
Expand Down

0 comments on commit ef38658

Please sign in to comment.