Skip to content

Commit

Permalink
Merge pull request #156 from AElfProject/feature/addressLength
Browse files Browse the repository at this point in the history
feat: not support optionalChain
  • Loading branch information
hzz780 authored May 23, 2024
2 parents 1ee98f0 + 437c247 commit 17feba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const inputAddressFormatter = address => {
try {
if (realAddress.indexOf('_') > 0) {
const parts = realAddress.split('_');
realAddress = parts?.[1];
realAddress = parts[1];
}
if (getByteCountByAddress(realAddress) !== 36) {
throw new Error('Invalid address');
Expand Down

0 comments on commit 17feba2

Please sign in to comment.