Skip to content

Commit 91ff399

Browse files
committed
add documentation for reverting txs & gas_limit assignment
1 parent 136bdd3 commit 91ff399

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ The key directives are:
257257

258258
- `[spam.tx]` defines a single transaction
259259

260-
- Each tx directive can include various fields such as `to`, `from`, `signature`, `args`, and `value` to specify the details of the transactions or contract interactions.
260+
- Each tx directive can include various fields such as `to`, `from`, `signature`, `args`, `value`, and `gas_limit` to specify the details of the transactions or contract interactions.
261261

262262
- `[[spam.bundle.tx.fuzz]]` or `[[spam.tx.fuzz]]`: Configures fuzzing parameters for specific fields in spam transactions, allowing for randomized inputs or ETH values within defined ranges.
263263

docs/creating_scenarios.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,21 @@ args = ["1350000"]
189189

190190
> 💡 You may want to define different `from_pool` definitions for different kinds of transactions to logically group your agents, which will make your orderflow easier to reason about.
191191
192+
### optional gas limit & sending reverting txs
193+
194+
You have the option to set `gas_limit` to skip gas estimation. This also enables reverting transactions to be sent.
195+
196+
```toml
197+
[[spam]]
198+
199+
[spam.tx]
200+
to = "{SpamMe2}"
201+
from_pool = "bluepool"
202+
signature = "consumeGas(uint256 gasAmount)"
203+
args = ["1350000"]
204+
gas_limit = 1350000
205+
```
206+
192207
### sending bundles
193208

194209
The `[spam.tx]` directive sends a mempool transaction using `eth_sendRawTransaction`, but Contender also supports bundles.

0 commit comments

Comments
 (0)