From c2d505200b22f7af8ae8634d2e27690214fead76 Mon Sep 17 00:00:00 2001 From: Tuditi <45079109+Tuditi@users.noreply.github.com> Date: Thu, 10 Nov 2022 13:27:44 +0100 Subject: [PATCH] Chore: update wallet.rs (#5174) * chore: update wallet.rs to rc.4 * chore: update @iota/types * feat: add utf8ToHex conversion * chore: updated yarn.lock --- .../lib/core/wallet/utils/getOutputOptions.ts | 6 ++--- packages/shared/package.json | 4 ++-- yarn.lock | 22 +++++++++---------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/shared/lib/core/wallet/utils/getOutputOptions.ts b/packages/shared/lib/core/wallet/utils/getOutputOptions.ts index 273f9773eb..d4cd983d29 100644 --- a/packages/shared/lib/core/wallet/utils/getOutputOptions.ts +++ b/packages/shared/lib/core/wallet/utils/getOutputOptions.ts @@ -1,4 +1,4 @@ -import { convertDateToUnixTimestamp } from '@core/utils' +import { convertDateToUnixTimestamp, Converter } from '@core/utils' import type { OutputOptions, Assets } from '@iota/wallet' import { get } from 'svelte/store' import { IAsset } from '../interfaces' @@ -42,8 +42,8 @@ export function getOutputOptions( recipientAddress, amount, features: { - ...(metadata && { metadata }), - ...(tag && { tag }), + ...(metadata && { metadata: Converter.utf8ToHex(metadata, true) }), + ...(tag && { tag: Converter.utf8ToHex(tag, true) }), }, unlocks: { ...(unixTime && { expirationUnixTime: unixTime }), diff --git a/packages/shared/package.json b/packages/shared/package.json index 6453a3c6ae..27155b558a 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -11,7 +11,7 @@ "@iota/transaction-converter": "^1.0.0-beta.30", "@iota/unit-converter": "^1.0.0-beta.30", "@iota/util.js": "^1.9.0-stardust.5", - "@iota/wallet": "2.0.3-rc.2", + "@iota/wallet": "2.0.3-rc.4", "@sveltejs/svelte-virtual-list": "^3.0.1", "big.js": "^6.0.3", "lottie-web": "^5.7.8", @@ -27,7 +27,7 @@ "test": "jest" }, "devDependencies": { - "@iota/types": "^1.0.0-beta.11", + "@iota/types": "2.0.0-rc.1", "@rollup/plugin-commonjs": "^13.0.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^9.0.0", diff --git a/yarn.lock b/yarn.lock index 99e58ea3ef..fdffd41b6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -690,10 +690,10 @@ "@types/warning" "^3.0.0" warning "^4.0.3" -"@iota/types@^1.0.0-beta.11": - version "1.0.0-beta.11" - resolved "https://registry.npmjs.org/@iota/types/-/types-1.0.0-beta.11.tgz" - integrity sha512-jFma7n4dpf+AikSIvY6CzrDDQ/TVnlV3HBIeOrDUDJku3oCcOkm8Jp/i0uKSD/krP2BAcDrWrNUr5Tn9MIw7+A== +"@iota/types@2.0.0-rc.1": + version "2.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@iota/types/-/types-2.0.0-rc.1.tgz#a5652d89ccd7db1770de30baf5603cd5194fd3b6" + integrity sha512-IDov83MBDlRJJXj98sPhBVslgCSqFexsvelDTDeWKZwYG8G7I+BnMCjdVXiOzLrWy3ScWJljqx1yW4cqmTdpRg== "@iota/types@^1.0.0-beta.15": version "1.0.0-beta.15" @@ -727,13 +727,13 @@ dependencies: big-integer "^1.6.51" -"@iota/wallet@2.0.3-rc.2": - version "2.0.3-rc.2" - resolved "https://registry.yarnpkg.com/@iota/wallet/-/wallet-2.0.3-rc.2.tgz#b53f2ef3d5941fe9e1601aabc67bdcd6c81219bd" - integrity sha512-yGzJA757pWCJOTg+aSNfAcFfXpQlbyPG1du+FENYjNwUO3npriEQiMW2fhzHvVAyipGVfR+kO4xjV1lFQhZyLw== +"@iota/wallet@2.0.3-rc.4": + version "2.0.3-rc.4" + resolved "https://registry.yarnpkg.com/@iota/wallet/-/wallet-2.0.3-rc.4.tgz#8614bf297ffe8922d30f459580dd5a02c7a42875" + integrity sha512-Bkq9n2S+keRTAsR1tckY64JLMTIzuHcG/qM981lh/9vjV0oeXwplwqGutSJHVIdsfgRpOsap60xXfT77PkDkww== dependencies: "@iota/types" "^1.0.0-beta.15" - cargo-cp-artifact "^0.1.5" + cargo-cp-artifact "^0.1.6" prebuild-install "^7.1.1" typescript "^4.8.3" @@ -2553,9 +2553,9 @@ caniuse-lite@^1.0.30001400: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001412.tgz#30f67d55a865da43e0aeec003f073ea8764d5d7c" integrity sha512-+TeEIee1gS5bYOiuf+PS/kp2mrXic37Hl66VY6EAfxasIk5fELTktK2oOezYed12H8w7jt3s512PpulQidPjwA== -cargo-cp-artifact@^0.1.5: +cargo-cp-artifact@^0.1.6: version "0.1.6" - resolved "https://registry.npmjs.org/cargo-cp-artifact/-/cargo-cp-artifact-0.1.6.tgz" + resolved "https://registry.yarnpkg.com/cargo-cp-artifact/-/cargo-cp-artifact-0.1.6.tgz#df1bc9dad036ae0f4230639a869182e1d5850f89" integrity sha512-CQw0doK/aaF7j041666XzuilHxqMxaKkn+I5vmBsd8SAwS0cO5CqVEVp0xJwOKstyqWZ6WK4Ww3O6p26x/Goyg== chalk@^2.0.0, chalk@^2.4.1, chalk@^2.4.2: