paritytech / ink
Showing 3 of 5 files from the diff.

@@ -47,7 +47,7 @@
Loading
47 47
/// The gas limit for contract instantiate and call dry runs.
48 48
const DRY_RUN_GAS_LIMIT: u64 = 500_000_000_000;
49 49
50 -
// TODO(#xxx) Should be fetched automatically.
50 +
// TODO(#1422) Should be fetched automatically.
51 51
#[subxt::subxt(runtime_metadata_path = "metadata/contracts-node.scale")]
52 52
pub(super) mod api {}
53 53
@@ -302,13 +302,15 @@
Loading
302 302
        )
303 303
        .unvalidated();
304 304
305 -
        self
306 -
            .client
305 +
        self.client
307 306
            .tx()
308 307
            .sign_and_submit_then_watch_default(&call, signer)
309 308
            .await
310 309
            .map(|tx_progress| {
311 -
                log_info(&format!("signed and submitted call with extrinsic hash {:?}", tx_progress.extrinsic_hash()));
310 +
                log_info(&format!(
311 +
                    "signed and submitted call with extrinsic hash {:?}",
312 +
                    tx_progress.extrinsic_hash()
313 +
                ));
312 314
                tx_progress
313 315
            })
314 316
            .unwrap_or_else(|err| {
@@ -317,22 +319,15 @@
Loading
317 319
                    err
318 320
                );
319 321
            })
320 -
            // TODO(#xxx) It should be configurable to use `.wait_for_finalized_success` instead.
321 322
            .wait_for_in_block()
322 323
            .await
323 324
            .unwrap_or_else(|err| {
324 -
                panic!(
325 -
                    "error on call `wait_for_in_block`: {:?}",
326 -
                    err
327 -
                );
325 +
                panic!("error on call `wait_for_in_block`: {:?}", err);
328 326
            })
329 327
            .fetch_events()
330 328
            .await
331 329
            .unwrap_or_else(|err| {
332 -
                panic!(
333 -
                    "error on call `fetch_events`: {:?}",
334 -
                    err
335 -
                );
330 +
                panic!("error on call `fetch_events`: {:?}", err);
336 331
            })
337 332
    }
338 333
}

@@ -161,7 +161,7 @@
Loading
161 161
                });
162 162
163 163
                log_info("extracting metadata");
164 -
                // TODO(#xxx) `smart-bench_macro` needs to be forked.
164 +
                // TODO(#1421) `smart-bench_macro` needs to be forked.
165 165
                ink::env::e2e::smart_bench_macro::contract!(#path);
166 166
167 167
                log_info("creating new client");

@@ -23,7 +23,7 @@
Loading
23 23
    Error,
24 24
};
25 25
pub use default_accounts::*;
26 -
// TODO(#xxx) `smart-bench_macro` needs to be forked.
26 +
// TODO(#1421) `smart-bench_macro` needs to be forked.
27 27
use pallet_contracts_primitives::{
28 28
    ContractExecResult,
29 29
    ContractInstantiateResult,
@@ -80,7 +80,7 @@
Loading
80 80
pub type Signer<C> = PairSigner<C, sr25519::Pair>;
81 81
82 82
/// Trait for contract constructors.
83 -
// TODO(#xxx) Merge this with `InkMessage` to be just `InkSelector`. Requires forking `smart-bench-macro`.
83 +
// TODO(#1421) Merge this with `InkMessage` to be just `InkSelector`. Requires forking `smart-bench-macro`.
84 84
pub trait InkConstructor: scale::Encode {
85 85
    /// An ink! selector consists of four bytes.
86 86
    const SELECTOR: [u8; 4];
Files Coverage
crates 70.78%
Project Totals (193 files) 70.78%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading