execution reverted
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
Research direction
Start with the reported simulate result and the ethers.js transaction payload in the issue, focusing on the first reverted transaction and its zero-byte revert value. Compare the bundle simulation inputs with the provider's handling of reverted transactions. Done means the cause of the revert is identified and a concrete repository change or reproducible fix is specified.
Written by the indexing model from the issue text.
Description
the simulate result logs:
{
"bundleGasPrice": {
"type": "BigNumber",
"hex": "0x3f95c826"
},
"bundleHash": "0x8e48b583cf400618731643f83ac906ae3d6c9f4ad041f5c26fb0700d282fe6fc",
"coinbaseDiff": {
"type": "BigNumber",
"hex": "0x9499447dc400"
},
"ethSentToCoinbase": {
"type": "BigNumber",
"hex": "0x00"
},
"gasFees": {
"type": "BigNumber",
"hex": "0x9499447dc400"
},
"results": [
{
"txHash": "0x729f20355cbca7fd16658a629afcf78d08eff5b72d2f26d0844afa3dd489c256",
"gasUsed": 22123,
"gasPrice": "0",
"gasFees": "0",
"fromAddress": "0xF727aDCef4C8e1D348ACD16e815538FcB0403E1b",
"toAddress": "0xC1c4301C5bd4eBe2C04817aC815AaceB4DeDA8DB",
"coinbaseDiff": "0",
"ethSentToCoinbase": "0",
"error": "execution reverted",
"revert": "\u0000\u0000\u0000",
"value": null
},
{
"txHash": "0x9887f405a3a1ff5cb7b2823f47b2d2fe4ed914119655452b89c7d88109792d5b",
"gasUsed": 108924,
"gasPrice": "1500000000",
"gasFees": "163386000000000",
"fromAddress": "0xcB0F1996905CbDf2659FCB78EB4Ebd22afa70984",
"toAddress": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"coinbaseDiff": "163386000000000",
"ethSentToCoinbase": "0",
"value": "0x"
},
{
"txHash": "0xf0c3c99a665e0824ab43bc5bb536fe263561646426aea1434f2620d28d3f7d37",
"gasUsed": 22111,
"gasPrice": "0",
"gasFees": "0",
"fromAddress": "0xF727aDCef4C8e1D348ACD16e815538FcB0403E1b",
"toAddress": "0xC1c4301C5bd4eBe2C04817aC815AaceB4DeDA8DB",
"coinbaseDiff": "0",
"ethSentToCoinbase": "0",
"error": "execution reverted",
"revert": "\u0000\u0000\u0000",
"value": null
}
],
"stateBlockNumber": 10420429,
"totalGasUsed": 153158,
"firstRevert": {
"txHash": "0x729f20355cbca7fd16658a629afcf78d08eff5b72d2f26d0844afa3dd489c256",
"gasUsed": 22123,
"gasPrice": "0",
"gasFees": "0",
"fromAddress": "0xF727aDCef4C8e1D348ACD16e815538FcB0403E1b",
"toAddress": "0xC1c4301C5bd4eBe2C04817aC815AaceB4DeDA8DB",
"coinbaseDiff": "0",
"ethSentToCoinbase": "0",
"error": "execution reverted",
"revert": "\u0000\u0000\u0000",
"value": null
}
}
that have a error message example:
"error": "execution reverted",
"revert": "\u0000\u0000\u0000",
my first transation of the code is payload:
const backslicePayload = ethers.utils.solidityPack(
["address", "address", "uint128", "uint128", "uint8"],
[
weth,
pairToSandwich,
sandwichStates.frontrun.amountOut,
sandwichStates.backrun.amountOut,
ethers.BigNumber.from(weth).lt(ethers.BigNumber.from(token)) ? 0 : 1,
]
);
const backsliceTx = {
to: CONTRACTS.SANDWICH,
from: searcherWallet.address,
data: backslicePayload,
chainId: PUBLISH.ENV==0?Chain.Goerli:Chain.Mainnet,
maxPriorityFeePerGas: 0,
maxFeePerGas: nextBaseFee,
gasLimit: 250000,
nonce: nonce + 1,
type: 2,
};
const backsliceTxSigned = await searcherWallet.signTransaction(backsliceTx);
- Dominant language
- TypeScript
- Stars
- 566
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flashbots/ethers-provider-flashbots-bundle
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/ethers-provider-flashbots-bundle#131 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/ethers-provider-flashbots-bundle#128 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
flashbots/ethers-provider-flashbots-bundle#127 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
flashbots/ethers-provider-flashbots-bundle#124 · 1 comment ·
All issues in flashbots/ethers-provider-flashbots-bundle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
juice-shop/juice-shop#3706 ·
Maintainers usually reply within 1 day
-
sbx up from a subfolder silently pushes the whole work treePossibly taken @pdettori claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
outline/outline#14348 · 1 comment ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day