Skip to content

Commit

Permalink
Merge pull request #54 from rootstock/json_null_address
Browse files Browse the repository at this point in the history
Handling null address serialization
  • Loading branch information
aeidelman authored and Diego López León committed Sep 4, 2018
2 parents d89e31a + 49a3103 commit d94b035
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 d94b035

Please sign in to comment.