sphere icon indicating copy to clipboard operation
sphere copied to clipboard

implementation of CellId.to_token and from_token slightly different from the official one

Open wenjinshao opened this issue 9 years ago • 2 comments

Specifically, the official (?) implementation strips all trailing '0's from the token generated from a CellId, and always right-pads '0's to make the input token a 16-character hex representation before constructing a CellId with it.

wenjinshao avatar Jun 22 '16 20:06 wenjinshao

Thanks for the report. I'll have a go at fixing it.

jongillham avatar Jun 23 '16 16:06 jongillham

Thanks, sounds great!

wenjinshao avatar Jun 24 '16 05:06 wenjinshao