• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iotaledger / iota / 23468788568

23 Mar 2026 05:11PM UTC coverage: 64.055% (+0.05%) from 64.007%
23468788568

push

github

web-flow
refactor(iota-framework): remove `copy` from `TxContextBuilder` (#10877)

# Description of change

Remove `copy` from `TxContextBuilder`.
All functions that set parameters to a builder instance take it as the
first parameter by value. It is assumed that move semantics will be
used, but having `copy` allows the compiler to create a builder copy on
each function call:
```rust
 let builder = test_scenario::ctx_builder_from_sender(@0xB)
        .set_epoch(42)
        .set_epoch_timestamp(1_000_000_000)
        .set_ids_created(3)
        .set_reference_gas_price(1000)
        .set_gas_price(700)
        .set_gas_budget(100_000);
```
Creating copies can also be misleading during builder initialization; It
can be hard to keep track of what values ​​a particular builder instance
contains.

228734 of 357089 relevant lines covered (64.06%)

2801056.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.99
/crates/iota-core/src/execution_cache/writeback_cache.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc