Skip to content

Commit 2be53b6

Browse files
authored
Merge pull request #196 from AdExNetwork/fix-FromSql-for-ChannelId
Fix `FromSql for ChannelId`
2 parents 3fe919f + 6cd9b4b commit 2be53b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

primitives/src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub mod postgres {
208208
fn from_sql(ty: &Type, raw: &'a [u8]) -> Result<Self, Box<dyn Error + Sync + Send>> {
209209
let str_slice = <&str as FromSql>::from_sql(ty, raw)?;
210210

211-
Ok(ChannelId::from_hex(str_slice)?)
211+
Ok(ChannelId::from_hex(&str_slice[2..])?)
212212
}
213213

214214
fn accepts(ty: &Type) -> bool {

0 commit comments

Comments
 (0)