File tree Expand file tree Collapse file tree 3 files changed +114
-2
lines changed
examples/historical_scanning Expand file tree Collapse file tree 3 files changed +114
-2
lines changed Original file line number Diff line number Diff line change 1+ name : " CI"
2+
3+ on :
4+ pull_request :
5+ merge_group :
6+ push :
7+ branches : [main]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+ cancel-in-progress : true
15+
16+ jobs :
17+ cargo-build :
18+ name : Cargo Build
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Fetch Repository
23+ uses : actions/checkout@v5
24+
25+ - name : Install stable toolchain
26+ uses : actions-rust-lang/setup-rust-toolchain@v1
27+
28+ - name : cargo build
29+ run : cargo b --workspace --all-targets --all-features
30+
31+ cargo-fmt :
32+ name : Cargo fmt
33+ runs-on : ubuntu-latest
34+
35+ steps :
36+ - name : Fetch Repository
37+ uses : actions/checkout@v5
38+
39+ - name : Install stable toolchain
40+ uses : actions-rust-lang/setup-rust-toolchain@v1
41+ with :
42+ components : rustfmt
43+ toolchain : nightly
44+
45+ - name : Rustfmt Check
46+ run : cargo fmt --all --check
47+
48+ cargo-clippy :
49+ name : Cargo clippy
50+ runs-on : ubuntu-latest
51+
52+ steps :
53+ - name : Fetch Repository
54+ uses : actions/checkout@v5
55+
56+ - name : Install stable toolchain
57+ uses : actions-rust-lang/setup-rust-toolchain@v1
58+ with :
59+ components : clippy
60+
61+ - name : Clippy Check
62+ run : cargo clippy --workspace --all-targets --all-features -- -D warnings
63+
64+ typos-cli :
65+ name : typos
66+ runs-on : ubuntu-latest
67+
68+ steps :
69+ - name : Fetch Repository
70+ uses : actions/checkout@v5
71+
72+ - name : Install Typos
73+ uses : taiki-e/install-action@v2
74+ with :
75+ tool : typos-cli
76+
77+ - name : run typos
78+ run : typos
Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ pull_request :
5+ merge_group :
6+ push :
7+ branches : [main]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+ cancel-in-progress : true
15+
16+ jobs :
17+ cargo-next-test :
18+ name : Cargo test
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Fetch Repository
23+ uses : actions/checkout@v5
24+
25+ - name : Install stable toolchain
26+ uses : actions-rust-lang/setup-rust-toolchain@v1
27+
28+ - name : Install cargo-nextest
29+ uses : taiki-e/install-action@v2
30+ with :
31+ tool : cargo-nextest
32+
33+ - name : Cargo test
34+ run : cargo nextest run --workspace --all-targets --all-features --no-tests=pass
Original file line number Diff line number Diff line change 11use std:: { sync:: Arc , time:: Duration } ;
22
3- use alloy:: providers:: { ProviderBuilder } ;
3+ use alloy:: providers:: ProviderBuilder ;
44use alloy:: rpc:: types:: Log ;
55use alloy:: sol;
66use alloy:: sol_types:: SolEvent ;
@@ -65,7 +65,7 @@ async fn main() -> anyhow::Result<()> {
6565 callback : Arc :: new ( CounterCallback ) ,
6666 } ;
6767
68- counter_contract. increase ( ) . send ( ) . await ?;
68+ let _ = counter_contract. increase ( ) . send ( ) . await ? . get_receipt ( ) . await ?;
6969
7070 let mut scanner = ScannerBuilder :: new ( anvil. ws_endpoint_url ( ) )
7171 . add_event_filter ( increase_filter)
You can’t perform that action at this time.
0 commit comments