@@ -921,7 +921,7 @@ where
921921 )
922922 VALUES ($1, $2, $3, $4, $5)
923923 "# ,
924- self . allocation_id. to_string ( ) ,
924+ T :: allocation_id_to_address ( & self . allocation_id) . encode_hex ( ) ,
925925 self . sender. encode_hex( ) ,
926926 serde_json:: to_value( expected_rav) ?,
927927 serde_json:: to_value( rav) ?,
@@ -977,7 +977,7 @@ impl DatabaseInteractions for SenderAllocationState<Legacy> {
977977 "# ,
978978 BigDecimal :: from( min_timestamp) ,
979979 BigDecimal :: from( max_timestamp) ,
980- self . allocation_id. to_string ( ) ,
980+ ( * * self . allocation_id) . encode_hex ( ) ,
981981 & signers,
982982 )
983983 . execute ( & self . pgpool )
@@ -1000,7 +1000,7 @@ impl DatabaseInteractions for SenderAllocationState<Legacy> {
10001000 allocation_id = $1
10011001 AND signer_address IN (SELECT unnest($2::text[]))
10021002 "# ,
1003- self . allocation_id. to_string ( ) ,
1003+ ( * * self . allocation_id) . encode_hex ( ) ,
10041004 & signers
10051005 )
10061006 . fetch_one ( & self . pgpool )
@@ -1050,7 +1050,7 @@ impl DatabaseInteractions for SenderAllocationState<Legacy> {
10501050 AND signer_address IN (SELECT unnest($3::text[]))
10511051 AND timestamp_ns > $4
10521052 "# ,
1053- self . allocation_id. to_string ( ) ,
1053+ ( * * self . allocation_id) . encode_hex ( ) ,
10541054 last_id,
10551055 & signers,
10561056 BigDecimal :: from(
@@ -1096,7 +1096,7 @@ impl DatabaseInteractions for SenderAllocationState<Legacy> {
10961096 SET last = true
10971097 WHERE allocation_id = $1 AND sender_address = $2
10981098 "# ,
1099- self . allocation_id. to_string ( ) ,
1099+ ( * * self . allocation_id) . encode_hex ( ) ,
11001100 self . sender. encode_hex( ) ,
11011101 )
11021102 . execute ( & self . pgpool )
@@ -1138,7 +1138,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
11381138 "# ,
11391139 BigDecimal :: from( min_timestamp) ,
11401140 BigDecimal :: from( max_timestamp) ,
1141- self . allocation_id. to_string ( ) ,
1141+ self . allocation_id. as_address ( ) . encode_hex ( ) ,
11421142 & signers,
11431143 )
11441144 . execute ( & self . pgpool )
0 commit comments