Safari-Wallet / core

17 stars 3 forks source link

Hotfix/hex string #18

Closed ronaldmannak closed 2 years ago

ronaldmannak commented 2 years ago

Wei.hexString() mistakenly used utf-8 encoded values instead of decimals, resulting in decimal 0 WEI being converted to 0x30 WEI. hexString now uses String(value, radix: 16).addHexPrefix() to return the correct value.