error[E04007]: incompatible types
┌─ ./sources/display.move:31:9
│
31 │ display_registry::set(&mut file_display, &file_cap, string::utf8(b"thumb_url"), url::new_unsafe_from_bytes(b"https://walrus.tusky.io/{thumb_blob_id}"));
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Invalid call of 'sui::display_registry::set'. Invalid argument for parameter 'value'
│
┌─ /home/du/.move/git/https___github_com_MystenLabs_sui_git_384b1c7ff289b32ed2664f29dc47dbc879fa43ee/crates/sui-framework/packages/sui-framework/sources/url.move:22:54
│
22 │ public fun new_unsafe_from_bytes(bytes: vector<u8>): Url {
│ --- Given: 'sui::url::Url'
│
┌─ /home/du/.move/git/https___github_com_MystenLabs_sui_git_384b1c7ff289b32ed2664f29dc47dbc879fa43ee/crates/sui-framework/packages/sui-framework/sources/registries/display_registry.move:81:85
│
81 │ public fun set<T>(display: &mut Display<T>, _: &DisplayCap<T>, name: String, value: String) {
│ ------ Expected: 'std::string::String'
As shown in the error, when I use Display V2 to set the URL of an NFT, it prompts me that I cannot use the Url type. Is there something wrong with my usage method, or does Display indeed not support the Url type?
If possible, could you provide an example of code using Display V2?
thx