DAVFoundation / xplore

⛓ A block explorer for local Ethereum testnets
MIT License
62 stars 65 forks source link

updated truncate function with slice. #83

Closed ryan-barrett closed 6 years ago

ryan-barrett commented 6 years ago

Updated the truncate function in utils.js to include the last character.

Description

Changed the function to use slice instead of substring.

Related Issue

#73

Motivation and Context

The last number given to truncate was being ignored by the function because of substring, but works with slice.

How Has This Been Tested?

Tested with multiple arguments and edge cases using dev console. Tests are still passing.

Types of changes

Checklist:

cg-cnu commented 6 years ago

Hey @ryan-barrett Thanks for your help! 🙂 Just a small issue here... You added package.json in the commit which is not needed, can you please remove it 😄

ryan-barrett commented 6 years ago

Sorry about that, It's been removed!