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

odd error when attempting to swap through a univ3 pool on a local fork #16

Open
3commascapital opened this issue May 18, 2022 · 4 comments

Comments

@3commascapital
Copy link

3commascapital commented May 18, 2022

got the following when trying to swap a uniswap v3 pool

✗ node_modules/.bin/hardhat trace --hash 0xb89c8ee689b95663128571e426b1608ded1263dcc72a18047e3a055f179a08cc --rpc http://localhost:8545
You are forking from block 14361020, which has less than 31 confirmations, and will affect Hardhat Network's performance.
Please use block number 14360994 or wait for the block to get 26 more confirmations.
Switched mainnet fork to block 14361020

node_modules/hardhat/src/internal/core/providers/http.ts:78
    const error = new ProviderError("HttpProviderError", -1);
                  ^
ProviderError: Errors encountered in param 1: Storage slot argument must have a length of 66 ("0x" + 32 bytes), but '0x0' has a length of 3
    at HttpProvider.request (node_modules/hardhat/src/internal/core/providers/http.ts:78:19)
    at JsonRpcClient._send (node_modules/hardhat/src/internal/hardhat-network/jsonrpc/client.ts:346:39)
    at JsonRpcClient._perform (node_modules/hardhat/src/internal/hardhat-network/jsonrpc/client.ts:276:34)
    at JsonRpcClient.getStorageAt (node_modules/hardhat/src/internal/hardhat-network/jsonrpc/client.ts:56:17)
    at ForkStateManager.getContractStorage (node_modules/hardhat/src/internal/hardhat-network/provider/fork/ForkStateManager.ts:206:51)
    at VMDebugTracer._getContractStorage (node_modules/hardhat/src/internal/hardhat-network/stack-traces/vm-debug-tracer.ts:469:34)
    at VMDebugTracer._stepToStructLog (node_modules/hardhat/src/internal/hardhat-network/stack-traces/vm-debug-tracer.ts:312:39)
    at VMDebugTracer._stepHandler (node_modules/hardhat/src/internal/hardhat-network/stack-traces/vm-debug-tracer.ts:141:34)
    at node_modules/async-eventemitter/lib/AsyncEventEmitter.js:58:8
    at node_modules/async/internal/withoutIndex.js:9:16
@zemse
Copy link
Owner

zemse commented May 25, 2022

This may be related to ethers-io/ethers.js#2982

Can you try using the latest version of ethers?

@3commascapital
Copy link
Author

i did. thanks @zemse. unfortunately the same issue is occuring. i think it might be related to NomicFoundation/hardhat#2672 can't say for sure though

@zemse
Copy link
Owner

zemse commented Feb 20, 2023

Hey @3commascapital, are you still facing this problem?

@3commascapital
Copy link
Author

will check when next able

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

No branches or pull requests

2 participants