From 430ccdcfd23a14c3575bec4bd3ea454738f73437 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Thu, 9 Mar 2023 21:55:47 +0100 Subject: [PATCH] Prepare release (#1938) --- Cargo.lock | 135 ++++++++++-------- wallet/CHANGELOG.md | 2 +- wallet/Cargo.toml | 18 +-- wallet/bindings/java/lib/native/Cargo.toml | 4 +- wallet/bindings/nodejs/Cargo.toml | 6 +- wallet/bindings/python/Cargo.toml | 4 +- wallet/bindings/swift/Cargo.toml | 6 +- wallet/bindings/wasm/Cargo.toml | 4 +- .../operations/transaction/prepare_output.rs | 8 +- 9 files changed, 99 insertions(+), 88 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 198e811802..1ab6a299bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,9 +94,9 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" [[package]] name = "async-trait" -version = "0.1.64" +version = "0.1.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" +checksum = "b84f9ebcc6c1f5b8cb160f6990096a5c127f423fcb6e1ccc46c370cbdfb75dfc" dependencies = [ "proc-macro2", "quote", @@ -237,9 +237,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array", ] @@ -258,9 +258,9 @@ checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" [[package]] name = "bytemuck" -version = "1.13.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c041d3eab048880cb0b86b256447da3f18859a163c3b8d8893f4e6368abe6393" +checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea" [[package]] name = "byteorder" @@ -362,9 +362,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.1.6" +version = "4.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0b0588d44d4d63a87dbd75c136c166bbfd9a86a31cb89e09906521c7d3f5e3" +checksum = "c3d7ae14b20b94cb02149ed21a86c423859cbe18dc7ed69845cace50e52b40a5" dependencies = [ "bitflags", "clap_derive", @@ -374,9 +374,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.1.0" +version = "4.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "684a277d672e91966334af371f1a7b5833f9aa00b07c84e92fbce95e00208ce8" +checksum = "44bec8e5c9d09e439c4335b1af0abaab56dcf3b94999a936e1bb47b9134288f0" dependencies = [ "heck", "proc-macro-error", @@ -403,7 +403,7 @@ dependencies = [ "fern-logger", "iota-wallet", "log", - "prefix-hex", + "prefix-hex 0.5.0", "serde_json", "thiserror", "tokio", @@ -476,9 +476,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.14" +version = "0.8.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" +checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" dependencies = [ "cfg-if", ] @@ -624,7 +624,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" dependencies = [ - "block-buffer 0.10.3", + "block-buffer 0.10.4", "crypto-common", "subtle", ] @@ -976,9 +976,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4" +checksum = "5be7b54589b581f624f566bf5d8eb2bab1db736c51528720b6bd36b96b55924d" dependencies = [ "bytes", "fnv", @@ -1218,8 +1218,9 @@ dependencies = [ [[package]] name = "iota-client" -version = "2.0.1-rc.6" -source = "git+https://github.com/iotaledger/iota.rs?rev=4f58026c1be557fcc7a2268049f571733e675098#4f58026c1be557fcc7a2268049f571733e675098" +version = "2.0.1-rc.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9287380d014d2f5c494f77c1e4542cd93cd5f9e585b792cd0dc75cb055369e5" dependencies = [ "async-trait", "backtrace", @@ -1237,7 +1238,7 @@ dependencies = [ "log", "num_cpus", "packable", - "prefix-hex", + "prefix-hex 0.5.0", "primitive-types", "reqwest", "serde", @@ -1298,8 +1299,9 @@ dependencies = [ [[package]] name = "iota-pow" -version = "1.0.0-rc.3" -source = "git+https://github.com/iotaledger/iota.rs?rev=4f58026c1be557fcc7a2268049f571733e675098#4f58026c1be557fcc7a2268049f571733e675098" +version = "1.0.0-rc.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49274e0483bad256363086ae66fb1b9a178d746676990b481589d4ce8c9de0cc" dependencies = [ "instant", "iota-crypto", @@ -1308,8 +1310,9 @@ dependencies = [ [[package]] name = "iota-types" -version = "1.0.0-rc.6" -source = "git+https://github.com/iotaledger/iota.rs?rev=4f58026c1be557fcc7a2268049f571733e675098#4f58026c1be557fcc7a2268049f571733e675098" +version = "1.0.0-rc.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31d51adb91478d259bcb6fb242db62d075e3a800adaaaa5bdce3d7ce75557b52" dependencies = [ "bech32 0.9.1", "bitflags", @@ -1319,10 +1322,9 @@ dependencies = [ "hashbrown 0.13.2", "hex", "iota-crypto", - "iota-pow", "iterator-sorted", "packable", - "prefix-hex", + "prefix-hex 0.5.0", "primitive-types", "serde", "serde-big-array", @@ -1332,7 +1334,7 @@ dependencies = [ [[package]] name = "iota-wallet" -version = "1.0.0-rc.5" +version = "1.0.0-rc.6" dependencies = [ "async-trait", "backtrace", @@ -1347,7 +1349,7 @@ dependencies = [ "iota-crypto", "log", "packable", - "prefix-hex", + "prefix-hex 0.6.0", "primitive-types", "rocksdb", "serde", @@ -1456,9 +1458,9 @@ checksum = "d101775d2bc8f99f4ac18bf29b9ed70c0dd138b9a1e88d7b80179470cbbe8bd2" [[package]] name = "itoa" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" [[package]] name = "jni" @@ -1482,9 +1484,9 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "jobserver" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "068b1ee6743e4d11fb9c6a1e6064b3693a1b600e7f5f5988047d98b3dc9fb90b" +checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" dependencies = [ "libc", ] @@ -1549,9 +1551,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.139" +version = "0.2.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c" [[package]] name = "libloading" @@ -1898,9 +1900,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" +checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" [[package]] name = "pbkdf2" @@ -1981,6 +1983,15 @@ dependencies = [ "uint", ] +[[package]] +name = "prefix-hex" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3b765bdee4f947c49356ac04884a3a929a03464c3325ec11c76e5a9ddf78101" +dependencies = [ + "hex", +] + [[package]] name = "primitive-types" version = "0.12.1" @@ -2299,9 +2310,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" [[package]] name = "same-file" @@ -2345,27 +2356,27 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.152" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" +checksum = "8cdd151213925e7f1ab45a9bbfb129316bd00799784b174b7cc7bcd16961c49e" dependencies = [ "serde_derive", ] [[package]] name = "serde-big-array" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bb66e1af4481c21cbc943cabb68b98aabb4d7f935e47d1b4de722ca09da0b4" +checksum = "11fc7cc2c76d73e0f27ee52abbd64eec84d46f370c88371120433196934e4b7f" dependencies = [ "serde", ] [[package]] name = "serde_derive" -version = "1.0.152" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" +checksum = "4fc80d722935453bcafdc2c9a73cd6fac4dc1938f0346035d84bf99fa9e33217" dependencies = [ "proc-macro2", "quote", @@ -2374,9 +2385,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.93" +version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" +checksum = "1c533a59c9d8a93a09c6ab31f0fd5e5f4dd1b8fc9434804029839884765d04ea" dependencies = [ "itoa", "ryu", @@ -2385,9 +2396,9 @@ dependencies = [ [[package]] name = "serde_repr" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a5ec9fa74a20ebbe5d9ac23dac1fc96ba0ecfe9f50f2843b52e537b10fbcb4e" +checksum = "395627de918015623b32e7669714206363a7fc00382bf477e72c1f7533e8eafc" dependencies = [ "proc-macro2", "quote", @@ -2481,9 +2492,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" +checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" dependencies = [ "libc", "winapi", @@ -2619,18 +2630,18 @@ checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" [[package]] name = "thiserror" -version = "1.0.38" +version = "1.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" +checksum = "a5ab016db510546d856297882807df8da66a16fb8c4101cb8b30054b0d5b2d9c" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.38" +version = "1.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" +checksum = "5420d42e90af0c38c3290abcca25b9b3bdf379fc9f55c528f53a269d9c9a267e" dependencies = [ "proc-macro2", "quote", @@ -2692,9 +2703,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.25.0" +version = "1.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" +checksum = "03201d01c3c27a29c8a5cee5b55a93ddae1ccf6f08f65365c2c918f8c1b76f64" dependencies = [ "autocfg", "bytes", @@ -2705,7 +2716,7 @@ dependencies = [ "pin-project-lite", "socket2", "tokio-macros", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] @@ -2824,15 +2835,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.10" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" +checksum = "524b68aca1d05e03fdf03fcdce2c6c94b6daf6d16861ddaa7e4f2b6638a9052c" [[package]] name = "unicode-ident" -version = "1.0.6" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" [[package]] name = "unicode-normalization" @@ -3182,9 +3193,9 @@ checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" [[package]] name = "winnow" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faf09497b8f8b5ac5d3bb4d05c0a99be20f26fd3d5f2db7b0716e946d5103658" +checksum = "ee7b2c67f962bf5042bfd8b6a916178df33a26eec343ae064cb8e069f638fa6f" dependencies = [ "memchr", ] diff --git a/wallet/CHANGELOG.md b/wallet/CHANGELOG.md index 72d2e11ce4..b7bb5fe2f5 100644 --- a/wallet/CHANGELOG.md +++ b/wallet/CHANGELOG.md @@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security --> -## 1.0.0-rc.6 - 2023-XX-XX +## 1.0.0-rc.6 - 2023-03-09 ### Added diff --git a/wallet/Cargo.toml b/wallet/Cargo.toml index 52faf3a554..e821c082ae 100644 --- a/wallet/Cargo.toml +++ b/wallet/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iota-wallet" -version = "1.0.0-rc.5" +version = "1.0.0-rc.6" authors = [ "IOTA Stiftung" ] edition = "2021" description = "A stateful package for IOTA value transactions" @@ -17,24 +17,24 @@ all-features = true rustdoc-args = [ "--cfg", "docsrs" ] [dependencies] -async-trait = { version = "0.1.64", default-features = false } +async-trait = { version = "0.1.66", default-features = false } backtrace = { version = "0.3.67", default-features = false, features = [ "std" ] } fern-logger = { version = "0.5.0", default-features = false } futures = { version = "0.3.26", default-features = false } getset = { version = "0.1.2", default-features = false } instant = { version = "0.1.12", default-features = false } -# iota-client = { version = "2.0.1-rc.6", default-features = false, features = [ "message_interface", "tls" ] } -iota-client = { git = "https://github.com/iotaledger/iota.rs", rev = "4f58026c1be557fcc7a2268049f571733e675098", default-features = false, features = [ "message_interface", "tls" ] } +iota-client = { version = "2.0.1-rc.7", default-features = false, features = [ "message_interface", "tls" ] } +# iota-client = { git = "https://github.com/iotaledger/iota.rs", rev = "4f58026c1be557fcc7a2268049f571733e675098", default-features = false, features = [ "message_interface", "tls" ] } iota-crypto = { version = "0.15.3", default-features = false, features = [ "std", "chacha", "blake2b", "ed25519", "random", "slip10", "bip39", "bip39-en" ] } log = { version = "0.4.17", default-features = false } packable = { version = "0.7.0", default-features = false, features = [ "serde", "primitive-types" ] } -prefix-hex = { version = "0.5.0", default-features = false, features = [ "std" ] } +prefix-hex = { version = "0.6.0", default-features = false, features = [ "std" ] } primitive-types = { version = "0.12.1", default-features = false } rocksdb = { version = "0.20.1", default-features = false, features = [ "lz4" ], optional = true } -serde = { version = "1.0.152", default-features = false, features = [ "derive" ] } -serde_json = { version = "1.0.93", default-features = false } -thiserror = { version = "1.0.38", default-features = false } -tokio = { version = "1.25.0", default-features = false, features = [ "sync", "rt", "time" ] } +serde = { version = "1.0.154", default-features = false, features = [ "derive" ] } +serde_json = { version = "1.0.94", default-features = false } +thiserror = { version = "1.0.39", default-features = false } +tokio = { version = "1.26.0", default-features = false, features = [ "sync", "rt", "time" ] } zeroize = { version = "1.5.7", default-features = false, features = [ "zeroize_derive" ] } [target.'cfg(target_family = "wasm")'.dependencies] diff --git a/wallet/bindings/java/lib/native/Cargo.toml b/wallet/bindings/java/lib/native/Cargo.toml index dcdca4cd0b..5ffa41aa8b 100644 --- a/wallet/bindings/java/lib/native/Cargo.toml +++ b/wallet/bindings/java/lib/native/Cargo.toml @@ -21,8 +21,8 @@ iota-wallet = { path = "../../../..", features = [ "message_interface", "events" futures = { version = "0.3.26", default-features = false } jni = { version = "0.20.0", default-features = false } once_cell = { version = "1.17.1", default-features = false } -serde_json = { version = "1.0.93", default-features = false } -tokio = { version = "1.25.0", default-features = false, features = [ "macros" ] } +serde_json = { version = "1.0.94", default-features = false } +tokio = { version = "1.26.0", default-features = false, features = [ "macros" ] } lazy_static = { version = "1.4.0", default-features = false } [features] diff --git a/wallet/bindings/nodejs/Cargo.toml b/wallet/bindings/nodejs/Cargo.toml index 0b74ef2dad..f852d48a6f 100644 --- a/wallet/bindings/nodejs/Cargo.toml +++ b/wallet/bindings/nodejs/Cargo.toml @@ -22,6 +22,6 @@ iota-wallet = { path = "../../", default-features = false, features = [ "events" log = { version = "0.4.17", default-features = false } neon = { version = "0.10.1", default-features = false, features = [ "napi-6", "event-queue-api", "promise-api" ] } once_cell = { version = "1.17.1", default-features = false } -serde = { version = "1.0.152", default-features = false } -serde_json = { version = "1.0.93", default-features = false } -tokio = { version = "1.25.0", default-features = false } \ No newline at end of file +serde = { version = "1.0.154", default-features = false } +serde_json = { version = "1.0.94", default-features = false } +tokio = { version = "1.26.0", default-features = false } \ No newline at end of file diff --git a/wallet/bindings/python/Cargo.toml b/wallet/bindings/python/Cargo.toml index 77b67dddb1..53c52361a5 100644 --- a/wallet/bindings/python/Cargo.toml +++ b/wallet/bindings/python/Cargo.toml @@ -22,5 +22,5 @@ iota-wallet = { path = "../../", features = [ "message_interface", "events", "ro futures = { version = "0.3.26", default-features = false } once_cell = { version = "1.17.1", default-features = false } pyo3 = { version = "0.18.1", default-features = false, features = [ "macros", "extension-module" ] } -serde_json = { version = "1.0.93", default-features = false } -tokio = { version = "1.25.0", default-features = false } \ No newline at end of file +serde_json = { version = "1.0.94", default-features = false } +tokio = { version = "1.26.0", default-features = false } \ No newline at end of file diff --git a/wallet/bindings/swift/Cargo.toml b/wallet/bindings/swift/Cargo.toml index d6f49d3f22..ab396f675f 100644 --- a/wallet/bindings/swift/Cargo.toml +++ b/wallet/bindings/swift/Cargo.toml @@ -13,6 +13,6 @@ iota-wallet = { path = "../../", features = [ "message_interface", "events", "ro futures = { version = "0.3.26", default-features = false } once_cell = { version = "1.17.1", default-features = false } -serde = { version = "1.0.152", default-features = false, features = [ "derive" ] } -serde_json = { version = "1.0.93", default-features = false } -tokio = { version = "1.25.0", default-features = false } +serde = { version = "1.0.154", default-features = false, features = [ "derive" ] } +serde_json = { version = "1.0.94", default-features = false } +tokio = { version = "1.26.0", default-features = false } diff --git a/wallet/bindings/wasm/Cargo.toml b/wallet/bindings/wasm/Cargo.toml index af8f1c21b9..b440d9a112 100644 --- a/wallet/bindings/wasm/Cargo.toml +++ b/wallet/bindings/wasm/Cargo.toml @@ -21,8 +21,8 @@ iota-wallet = { path = "../../", default-features = false, features = [ "events" console_error_panic_hook = { version = "0.1.7", default-features = false } js-sys = { version = "0.3.61", default-features = false, features = [] } log = { version = "0.4.17", default-features = false } -serde_json = { version = "1.0.93", default-features = false } -tokio = { version = "1.25.0", default-features = false, features = [ "sync" ] } +serde_json = { version = "1.0.94", default-features = false } +tokio = { version = "1.26.0", default-features = false, features = [ "sync" ] } wasm-bindgen = { version = "0.2.84", default-features = false, features = [ "spans", "std", "serde-serialize" ] } wasm-bindgen-futures = { version = "0.4.34", default-features = false } diff --git a/wallet/src/account/operations/transaction/prepare_output.rs b/wallet/src/account/operations/transaction/prepare_output.rs index 035c8fca03..3aa402ea50 100644 --- a/wallet/src/account/operations/transaction/prepare_output.rs +++ b/wallet/src/account/operations/transaction/prepare_output.rs @@ -69,13 +69,13 @@ impl AccountHandle { if let Some(tag) = features.tag { first_output_builder = first_output_builder.add_feature(Feature::Tag(TagFeature::new( - prefix_hex::decode(&tag).map_err(|_| DtoError::InvalidField("tag"))?, + prefix_hex::decode(tag).map_err(|_| DtoError::InvalidField("tag"))?, )?)); } if let Some(metadata) = features.metadata { first_output_builder = first_output_builder.add_feature(Feature::Metadata(MetadataFeature::new( - prefix_hex::decode(&metadata).map_err(|_| DtoError::InvalidField("metadata"))?, + prefix_hex::decode(metadata).map_err(|_| DtoError::InvalidField("metadata"))?, )?)); } @@ -240,13 +240,13 @@ impl AccountHandle { if let Some(features) = options.features { if let Some(tag) = features.tag { first_output_builder = first_output_builder.add_feature(Feature::Tag(TagFeature::new( - prefix_hex::decode(&tag).map_err(|_| DtoError::InvalidField("tag"))?, + prefix_hex::decode(tag).map_err(|_| DtoError::InvalidField("tag"))?, )?)); } if let Some(metadata) = features.metadata { first_output_builder = first_output_builder.add_feature(Feature::Metadata(MetadataFeature::new( - prefix_hex::decode(&metadata).map_err(|_| DtoError::InvalidField("metadata"))?, + prefix_hex::decode(metadata).map_err(|_| DtoError::InvalidField("metadata"))?, )?)); }