Skip to content

Commit c9b4a34

Browse files
author
Stanisław Drozd
authored
pyth2wormhole-client: fix mapping_addr default for attestation config (#306)
1 parent b59bd70 commit c9b4a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solana/pyth2wormhole/client/src/attestation_cfg.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ pub struct AttestationConfig {
2626
/// Optionally, we take a mapping account to add remaining symbols from a Pyth deployments. These symbols are processed under attestation conditions for the `default` symbol group.
2727
#[serde(
2828
deserialize_with = "opt_pubkey_string_de",
29-
serialize_with = "opt_pubkey_string_ser"
29+
serialize_with = "opt_pubkey_string_ser",
30+
default // Uses Option::default() which is None
3031
)]
3132
pub mapping_addr: Option<Pubkey>,
3233
pub symbol_groups: Vec<SymbolGroup>,

0 commit comments

Comments
 (0)