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

Modified formatter for default address #123

Merged
merged 1 commit into from
Oct 15, 2019
Merged
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
2 changes: 2 additions & 0 deletions packages/caver-core-helpers/src/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ var outputPostFormatter = function(post){
};

var inputAddressFormatter = function (address) {
// For handling coverInitialTxValue to value
if (address === '0x') return address

var iban = new utils.Iban(address);
if (iban.isValid() && iban.isDirect()) {
Expand Down