str.strip(string) removes all characters contained in the string given to it. This is not the intended behavior, and is a bug previously reported on #52.
I've switched to checking if the string starts with it, and simply removing it if so. Alternatively .strip('0x') could be replaced with .replace('0x', ''), however that would be less clean.
str.strip(string)
removes all characters contained in the string given to it. This is not the intended behavior, and is a bug previously reported on #52.See https://docs.python.org/3.8/library/stdtypes.html#str.strip
I've switched to checking if the string starts with it, and simply removing it if so. Alternatively
.strip('0x')
could be replaced with.replace('0x', '')
, however that would be less clean.