Skip to content

Commit

Permalink
Return null for null address serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego López León committed Sep 4, 2018
1 parent d89e31a commit 49a3103
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public TransactionResultDTO (Block b, Integer index, Transaction tx) {
}

private String addressToJsonHex(RskAddress address) {
if (RskAddress.nullAddress().equals(address)) {
return null;
}
// Web3.js requires the address to be valid (20 bytes),
// so we have to serialize the Remasc sender as a valid address.
if (address.equals(RemascTransaction.REMASC_ADDRESS)) {
Expand Down

0 comments on commit 49a3103

Please sign in to comment.