]> Untitled Git - bdk/commit
refactor(chain)!: change String by &str for versioned scripts in migrate_schema
authornymius <155548262+nymius@users.noreply.github.com>
Wed, 4 Dec 2024 17:08:43 +0000 (14:08 -0300)
committernymius <155548262+nymius@users.noreply.github.com>
Wed, 4 Dec 2024 17:41:09 +0000 (14:41 -0300)
commit1c81cd53fb859f4fa9e416c1a776f5295f7da44b
treea4adcfaf2d369dc81e5557bbbb181bd2b6e4e6e4
parent265b59b6ef1c148875f4d6601e5a7e5f0b01785a
refactor(chain)!: change String by &str for versioned scripts in migrate_schema

`&str` is documenting clearly that `migrate_schema` should only read
`versioned_strings`.

Also, as `schema_vN` methods will return `String`, rust will always
automatically deref `&String` to `&str`.

BREAKING CHANGE: changes parameter versioned_strings from public
function migrate_schema from type &[String] to &[&str].
crates/chain/src/rusqlite_impl.rs
crates/wallet/src/wallet/changeset.rs