Skip to content

Commit

Permalink
fix: 🐛 add condition hanler for repeated aelf.Address
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-yang committed Nov 1, 2019
1 parent 274d81a commit 94fdbc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contract/contractMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ const maybeUglifyAddress = (obj, forSelf, paths) => reformat(obj, forSelf, paths
});

export const maybePrettifyAddress = (obj, forSelf, paths) => reformat(obj, forSelf, paths, target => {
if (Array.isArray(target)) {
return target.map(h => getRepForAddress(h));
}
if (typeof target !== 'string') {
return getRepForAddress(target);
}
Expand Down
Empty file added test/e2e/tmp.test.js
Empty file.

0 comments on commit 94fdbc3

Please sign in to comment.