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

provider.estimateGas(tx) failed to obtain #356

Open
yootou opened this issue Jul 5, 2024 · 0 comments
Open

provider.estimateGas(tx) failed to obtain #356

yootou opened this issue Jul 5, 2024 · 0 comments

Comments

@yootou
Copy link

yootou commented Jul 5, 2024

transaction:
{
type: 2,
chainId: 1,
from: '0x415807a0eEeC7B38B6D6402eD1675067d53126C0',
maxFeePerGas: 20594185443n,
maxPriorityFeePerGas: 6526153n,
nonce: 2,
to: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
data: '0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000006687bb3f00000000000000000
000000000000000000000000000000000000000000000040a00060400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000
000000000800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003a00000000000000000000000000
0000000000000000000000000000000000001600000000000000000000000004a029f7bcf33acb03547d8fa7be840347973e24e00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000002ba7def3
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad000000000000000000000000000000000000000000000000000002ba7def3000000000000000000000000000000000000
00000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000041263af53b612158d10320faf673c6dbee9dfff55ee0a88737578ba6c6a836417a3571496bf4bca35145d7d1167be16cfb69c02e7a1d54e97014efa43911e8aae41b000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000
000003635c9adc5dea000000000000000000000000000000000000000000000000000000002dc6cc21bbefa00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000
00000000000000000000000000000000000000000000000002b4a029f7bcf33acb03547d8fa7be840347973e24e002710c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000415807a0eeec7b38b6d6402ed1675067d53126c00000000000000000000000000000000000000000000000000000000000000064000000000000000000000
0000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000002dc6cc21bbefa',
value: '0x00'
}

An error occurred during execution as follows:

Error: execution reverted (unknown custom error) (action="estimateGas", data="0x815e1d64", reason=null, transaction={ "data": "0x3593564c0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000
00000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000006687bb1000000000000000000000000000000000000000000000000000000000000000040a0006040000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000
0000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000001600000000000000000000000004a029f7bcf33acb03547d8fa7be840347973e24e0000000
0000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000002ba7def300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fc91a3afd70395cd49
6c647d5a6cc9d4b2b7fad000000000000000000000000000000000000000000000000000002ba7def300000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000041263af53b612158d
10320faf673c6dbee9dfff55ee0a88737578ba6c6a836417a3571496bf4bca35145d7d1167be16cfb69c02e7a1d54e97014efa43911e8aae41b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000100000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000003635c9adc5dea000000000000000000000000000000000000000000000000000000002dc6cc21bbefa00000000000000000000000
000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002b4a029f7bcf33acb03547d8fa7be840347973e24e002710c02aaa39b223f
e8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000415807a
0eeec7b38b6d6402ed1675067d53126c000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000
00000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000002dc6cc21bbefa", "from": "0x415807a0eEeC7B38B6D6402eD1675067d53126C0", "to": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD" }, invocation=null, revert=null, code=CALL_EXCEPTION, version=6.13.1)
at makeError (file:///D:/Mev/mev_universal_router/node_modules/ethers/lib.esm/utils/errors.js:124:21)
at getBuiltinCallException (file:///D:/Mev/mev_universal_router/node_modules/ethers/lib.esm/abi/abi-coder.js:102:12)
at AbiCoder.getBuiltinCallException (file:///D:/Mev/mev_universal_router/node_modules/ethers/lib.esm/abi/abi-coder.js:203:16)
at JsonRpcProvider.getRpcError (file:///D:/Mev/mev_universal_router/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js:672:32)
at file:///D:/Mev/mev_universal_router/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js:298:45
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'CALL_EXCEPTION',
action: 'estimateGas',
data: '0x815e1d64',
reason: null,
transaction: {
to: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
data: '0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000006687bb10000000000000000
00000000000000000000000000000000000000000000000040a000604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000
00000000000800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000
000000000000000000000000000000000000001600000000000000000000000004a029f7bcf33acb03547d8fa7be840347973e24e00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000002ba7de
f300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad000000000000000000000000000000000000000000000000000002ba7def30000000000000000000000000000000000
0000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000041263af53b612158d10320faf673c6dbee9dfff55ee0a88737578ba6c6a836417a3571496bf4bca35145d7d1167be16cfb69c02e7a1d54e97014efa43911e8aae41b0
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000
00000003635c9adc5dea000000000000000000000000000000000000000000000000000000002dc6cc21bbefa00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000
0000000000000000000000000000000000000000000000000002b4a029f7bcf33acb03547d8fa7be840347973e24e002710c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000415807a0eeec7b38b6d6402ed1675067d53126c000000000000000000000000000000000000000000000000000000000000000640000000000000000000
000000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000002dc6cc21bbefa',
from: '0x415807a0eEeC7B38B6D6402eD1675067d53126C0'
},
invocation: null,
revert: null,
shortMessage: 'execution reverted (unknown custom error)',
info: {
error: { code: 3, message: 'execution reverted', data: '0x815e1d64' },
payload: {
method: 'eth_estimateGas',
params: [Array],
id: 10,
jsonrpc: '2.0'
}
}
}

May I ask how to troubleshoot the specific cause of the error? I have tried not to set the data and can obtain it normally. This set of calldata is generated through @uniswap/universal-router-sdk.

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

1 participant