diff --git a/.eslintrc.js b/.eslintrc.js index a5505e6..e6b2cc4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,6 @@ -require("@rushstack/eslint-patch/modern-module-resolution"); - module.exports = { - extends: "@chainsafe", + root: true, + extends: [ + "@chainsafe" + ] } \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 8b009f6..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "env": { - "es2021": true, - "node": true - }, - "extends": [ - "standard" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 13, - "sourceType": "module" - }, - "plugins": [ - "@typescript-eslint" - ], - "ignorePatterns": ["*.test.ts"], - "rules": { - "space-before-function-paren": ["error", "never"], - "quotes": ["error", "double"], - "comma-dangle": ["error", "only-multiline"] - } -} diff --git a/src/evmIndexer/utils/index.ts b/src/evmIndexer/utils/index.ts index 6632975..97242f8 100644 --- a/src/evmIndexer/utils/index.ts +++ b/src/evmIndexer/utils/index.ts @@ -186,7 +186,7 @@ export function decodeAmountsOrTokenId( const tokenId = AbiCoder.defaultAbiCoder().decode( ["uint256"], data, - )[0] as number; + )[0] as bigint; return tokenId.toString(); } case DepositType.SEMIFUNGIBLE: {