Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm2 breaking change #1707

Closed
ianhe8x opened this issue May 15, 2023 · 0 comments · Fixed by #1708
Closed

vm2 breaking change #1707

ianhe8x opened this issue May 15, 2023 · 0 comments · Fixed by #1708

Comments

@ianhe8x
Copy link
Collaborator

ianhe8x commented May 15, 2023

Description

vm2@3.9.18 introduced a breaking change(PR#519, commit), that will leads to the following error.

<BlockDispatcherService> ERROR failed to index block at height 41204847 handleTransfer(TypeError: this.pathResolve is not a function
    at CustomResolver.loadJS (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/resolver.js:209:19)
    at CustomResolver.loadJS (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/resolver-compat.js:63:65)
    at /usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/resolver.js:84:14
    at VM2 Wrapper.apply (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/bridge.js:485:11)
    at Module._extensions.<computed> (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/setup-node-sandbox.js:150:48)
    at requireImpl (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/setup-node-sandbox.js:123:3)
    at require (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/setup-node-sandbox.js:171:10)
    at /app/sandbox:1:88
    at VM2 Wrapper.apply (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/bridge.js:485:11)
    at IndexerSandbox.run (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/vm2/lib/nodevm.js:497:23)) TypeError: this.pathResolve is not a function
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Details

Indexer Version: subql-node-ethereum:v2.1.3-3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant