diff --git a/index.js b/index.js index 1c5e5d1..7eab03e 100644 --- a/index.js +++ b/index.js @@ -185,7 +185,7 @@ function _decodeLogs(logs) { ) { // ensure to remove leading 0x for hex numbers if (typeof decodedP.value === "string" && decodedP.value.startsWith("0x")) { - decodedP.value = new BN(decodedP.value.slice(2), 16).toString(10); + decodedP.value = new BN(decodedP.value, 16).toString(10); } else { decodedP.value = new BN(decodedP.value).toString(10); }