@@ -295,14 +295,21 @@ pub async fn submit_signature(signature_params: web::Json<SignatureParams>) -> i
295295 return HttpResponse :: Ok ( ) . body ( serde_json:: to_string ( & ret) . unwrap ( ) ) ;
296296 }
297297 } else if post_params. network == 2 {
298- let msg = post_params. message_bytes . as_deref ( ) . unwrap_or_default ( ) ;
299- let sig = post_params. signatures_bytes . as_deref ( ) . unwrap_or_default ( ) ;
298+ let msg = post_params. message . as_bytes ( ) ;
299+ let sig = post_params. signatures . as_bytes ( ) ;
300+
301+ let msgb = post_params. message_bytes . as_deref ( ) . unwrap_or_default ( ) ;
302+ let sigb = post_params. signatures_bytes . as_deref ( ) . unwrap_or_default ( ) ;
300303
301304 let result = verify:: verify_polkadot_signature ( msg, sig, & post_params. pubkey ) ;
302305 let result_ed = verify:: verify_polkadot_signature_ed25519 ( msg, sig, & post_params. pubkey ) ;
303306 let result_ec = verify:: verify_polkadot_signature_ecdsa ( msg, sig, & post_params. pubkey ) ;
304307
305- if result || result_ed || result_ec {
308+ let resultb = verify:: verify_polkadot_signature ( msgb, sigb, & post_params. pubkey ) ;
309+ let result_edb = verify:: verify_polkadot_signature_ed25519 ( msgb, sigb, & post_params. pubkey ) ;
310+ let result_ecb = verify:: verify_polkadot_signature_ecdsa ( msgb, sigb, & post_params. pubkey ) ;
311+
312+ if result || result_ed || result_ec || resultb || result_edb || result_ecb {
306313 let mut dropped_item = DroppedItem {
307314 address : post_params. pubkey . clone ( ) ,
308315 solana_address : post_params. message . clone ( ) ,
0 commit comments