From 7f6dc46b2c94ce70a1b7aca77aebdf3f3988d781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Guillard?= Date: Wed, 19 Oct 2022 18:21:49 +0200 Subject: [PATCH] Support tokenId with uint256 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }