flashbots / flashbots/ethers-provider-flashbots-bundle
error: 'execution reverted',
- Dominant language
- TypeScript
- Stars
- 566
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
When I construct a transaction, the transaction is to send a data to my personal contract through my account. Then simulate this transaction through the eth_callBundle method of flashbots, but the response I received shows an error, so I would like to ask you to help solve the problem, or point out the reason for the error, thank you for your help.
Below is my code and error message。
```
const Tx = {
to: my_contract.address,
from: Wallet.address,
data: Payload,
chainId: 1,
maxPriorityFeePerGas: 0,
maxFeePerGas: nextBaseFee,
gasLimit: 250000,
nonce: nonce + 1,
type: 2,
};
console.log(Tx);
const TxSigned = await Wallet.signTransaction(Tx);
const signedTxs = [TxSigned];
const simulatedResp = await callBundleFlashbots(signedTxs, targetBlockNumber);
```
the response is :
```
simulatedResp {
bundleGasPrice: '816000544',
bundleHash: '0x6114e885fcf513af79cdcd72ba3192eff297fc58772f6681b022a83594fbca43',
coinbaseDiff: '128523349703840',
ethSentToCoinbase: '0',
gasFees: '128523349703840',
results: [
{
coinbaseDiff: '0',
error: 'execution reverted',
ethSentToCoinbase: '0',
fromAddress: '0x446E90CDd028cBDf8aCcd47C2C3AD50F585C2e15',
gasFees: '0',
gasPrice: '0',
gasUsed: 28155,
revert: '\x00\x00\x00',
toAddress: '0x35e456AE04D641F2c13c52C7e637645CE92c293c',
txHash: '0xe78add5bc73e08ad291b8eafb77cff3b8f900264edf54e619fdb7a84eebd4d3c'
}
]
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.