Skip to content

Commit

Permalink
patch indexer breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
chiumax committed Oct 2, 2024
1 parent 51a3490 commit 7bfa841
Showing 1 changed file with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,33 @@ impl Signature {
SignatureEnum::FeePayer(_) => String::from("fee_payer_signature"),
SignatureEnum::SingleSender(sender) => {
let account_signature = sender.sender.as_ref().unwrap();
let signature = account_signature.signature.as_ref().unwrap();
let signature = account_signature.signature.as_ref();
match signature {
AccountSignatureEnum::Ed25519(_) => String::from("ed25519_signature"),
AccountSignatureEnum::MultiEd25519(_) => {
Some(AccountSignatureEnum::Ed25519(_)) => String::from("ed25519_signature"),
Some(AccountSignatureEnum::MultiEd25519(_)) => {
String::from("multi_ed25519_signature")
},
AccountSignatureEnum::SingleKeySignature(_) => {
Some(AccountSignatureEnum::SingleKeySignature(_)) => {
String::from("single_key_signature")
},
AccountSignatureEnum::MultiKeySignature(_) => {
Some(AccountSignatureEnum::MultiKeySignature(_)) => {
String::from("multi_key_signature")
},
}
None => String::from("unknown_signature")
}
// let signature = account_signature.signature.as_ref().unwrap();
// match signature {
// AccountSignatureEnum::Ed25519(_) => String::from("ed25519_signature"),
// AccountSignatureEnum::MultiEd25519(_) => {
// String::from("multi_ed25519_signature")
// },
// AccountSignatureEnum::SingleKeySignature(_) => {
// String::from("single_key_signature")
// },
// AccountSignatureEnum::MultiKeySignature(_) => {
// String::from("multi_key_signature")
// },
// }
},
}
}
Expand Down

0 comments on commit 7bfa841

Please sign in to comment.