Skip to content

Commit fa0577a

Browse files
Apply Patch #109 from @vaniiiii
1 parent a2841fb commit fa0577a

File tree

7 files changed

+16
-0
lines changed

7 files changed

+16
-0
lines changed

src/chain_parsers/visualsign-ethereum/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ mod tests {
646646
decode_transfers: false,
647647
transaction_name: Some("Custom Transaction Title".to_string()),
648648
metadata: None,
649+
abi_registry: None,
649650
};
650651
let payload = transaction_to_visual_sign(tx, options).unwrap();
651652

@@ -872,6 +873,7 @@ mod tests {
872873
decode_transfers: true,
873874
transaction_name: Some("Test Transaction".to_string()),
874875
metadata: None,
876+
abi_registry: None,
875877
}
876878
),
877879
Ok(SignablePayload::new(

src/chain_parsers/visualsign-ethereum/tests/lib_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ fn test_with_fixtures() {
3434
decode_transfers: true,
3535
transaction_name: None,
3636
metadata: None,
37+
abi_registry: None,
3738
};
3839

3940
let result = transaction_string_to_visual_sign(transaction_hex, options);
@@ -78,6 +79,7 @@ fn test_ethereum_charset_validation() {
7879
decode_transfers: true,
7980
transaction_name: None,
8081
metadata: None,
82+
abi_registry: None,
8183
};
8284

8385
let result = transaction_string_to_visual_sign(transaction_hex, options);

src/chain_parsers/visualsign-solana/src/core/visualsign.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ mod tests {
372372
metadata: None,
373373
decode_transfers: true,
374374
transaction_name: Some("Solana Transaction".to_string()),
375+
abi_registry: None,
375376
},
376377
);
377378

@@ -454,6 +455,7 @@ mod tests {
454455
metadata: None,
455456
decode_transfers: true,
456457
transaction_name: Some("V0 Transaction".to_string()),
458+
abi_registry: None,
457459
},
458460
);
459461

@@ -620,6 +622,7 @@ mod tests {
620622
metadata: None,
621623
decode_transfers: true,
622624
transaction_name: Some("Legacy Transfer Test".to_string()),
625+
abi_registry: None,
623626
},
624627
);
625628

@@ -663,6 +666,7 @@ mod tests {
663666
metadata: None,
664667
decode_transfers: true,
665668
transaction_name: Some("V0 Transfer Test".to_string()),
669+
abi_registry: None,
666670
},
667671
);
668672

@@ -789,6 +793,7 @@ mod tests {
789793
metadata: None,
790794
decode_transfers: true,
791795
transaction_name: Some("Manual V0 Transfer Test".to_string()),
796+
abi_registry: None,
792797
},
793798
);
794799

@@ -939,6 +944,7 @@ mod tests {
939944
metadata: None,
940945
decode_transfers: true,
941946
transaction_name: Some("TokenKeg Test".to_string()),
947+
abi_registry: None,
942948
},
943949
);
944950

src/chain_parsers/visualsign-solana/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ mod tests {
3232
metadata: None,
3333
decode_transfers: true,
3434
transaction_name: Some(description.to_string()),
35+
abi_registry: None,
3536
},
3637
)
3738
.unwrap_or_else(|e| panic!("Failed to convert {description} to payload: {e:?}"));
@@ -88,6 +89,7 @@ mod tests {
8889
metadata: None,
8990
decode_transfers: true,
9091
transaction_name: Some("Unicode Escape Test".to_string()),
92+
abi_registry: None,
9193
},
9294
)
9395
.expect("Should convert to payload successfully");

src/chain_parsers/visualsign-solana/src/utils/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub mod test_utils {
143143
metadata: None,
144144
decode_transfers: true,
145145
transaction_name: None,
146+
abi_registry: None,
146147
},
147148
)
148149
.expect("Failed to visualize tx commands")

src/chain_parsers/visualsign-sui/src/utils/test_helpers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub fn payload_from_b64(data: &str) -> SignablePayload {
7272
decode_transfers: true,
7373
transaction_name: None,
7474
metadata: None,
75+
abi_registry: None,
7576
},
7677
)
7778
.expect("Failed to visualize tx commands")
@@ -85,6 +86,7 @@ pub fn payload_from_b64_with_context(data: &str, context: &str) -> SignablePaylo
8586
decode_transfers: true,
8687
transaction_name: None,
8788
metadata: None,
89+
abi_registry: None,
8890
},
8991
) {
9092
Ok(payload) => payload,

src/visualsign/src/vsptrait.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ mod tests {
284284
decode_transfers: true,
285285
transaction_name: Some("Custom Transaction".to_string()),
286286
metadata: None,
287+
abi_registry: None,
287288
};
288289

289290
let result = converter.to_visual_sign_payload(transaction, options);

0 commit comments

Comments
 (0)