Skip to content

Commit

Permalink
fixup! force migration to new codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
pm47 committed Jul 12, 2021
1 parent 2c2078e commit 5fde075
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SqliteChannelsDb(sqlite: Connection) extends ChannelsDb with Logging {
val state = stateDataCodec.decode(BitVector(rs.getBytes("data"))).require.value
val data = stateDataCodec.encode(state).require.toByteArray
statement.setBytes(1, data)
statement.setString(2, state.channelId.toHex)
statement.setBytes(2, state.channelId.toArray)
}
)(logger)
}
Expand Down

0 comments on commit 5fde075

Please sign in to comment.