File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3734,7 +3734,7 @@ mod tests {
3734
3734
transaction: txid,
3735
3735
sat_ranges: None ,
3736
3736
indexed: true ,
3737
- inscriptions: None ,
3737
+ inscriptions: Some ( Vec :: new ( ) ) ,
3738
3738
outpoint: output,
3739
3739
runes: Some (
3740
3740
vec![ (
Original file line number Diff line number Diff line change 1
1
< h1 > Output < span class =monospace > {{self.outpoint}}</ span > </ h1 >
2
2
< dl >
3
- %% if let Some(inscriptions) = &self.inscriptions {
3
+ %% let inscriptions = self.inscriptions.clone().unwrap_or_default();
4
+ %% if !inscriptions.is_empty() {
4
5
< dt > inscriptions</ dt >
5
6
< dd class =thumbnails >
6
- %% for inscription in inscriptions {
7
+ %% for inscription in & inscriptions {
7
8
{{Iframe::thumbnail(*inscription)}}
8
9
%% }
9
10
</ dd >
10
11
%% }
11
- %% if let Some(runes) = &self.runes {
12
+ %% let runes = self.runes.clone().unwrap_or_default();
13
+ %% if !runes.is_empty() {
12
14
< dt > runes</ dt >
13
15
< dd >
14
16
< table >
15
17
< tr >
16
18
< th > rune</ th >
17
19
< th > balance</ th >
18
20
</ tr >
19
- %% for (rune, balance) in runes {
21
+ %% for (rune, balance) in & runes {
20
22
< tr >
21
23
< td > < a href =/rune/{{ rune }} > {{ rune }}</ a > </ td >
22
24
< td > {{ balance }}</ td >
You can’t perform that action at this time.
0 commit comments