diff --git a/package.json b/package.json index 983a558b5f..8aeb5eeb34 100644 --- a/package.json +++ b/package.json @@ -44,13 +44,13 @@ }, "dependencies": { "@ardenthq/arkvault-url": "^1.2.0", - "@ardenthq/sdk": "^2.1.2", - "@ardenthq/sdk-ark": "^2.1.2", - "@ardenthq/sdk-cryptography": "^2.1.2", - "@ardenthq/sdk-helpers": "^2.1.2", - "@ardenthq/sdk-intl": "^2.1.2", - "@ardenthq/sdk-ledger": "^2.1.2", - "@ardenthq/sdk-profiles": "^2.1.2", + "@ardenthq/sdk": "^2.2.0", + "@ardenthq/sdk-ark": "^2.2.0", + "@ardenthq/sdk-cryptography": "^2.2.0", + "@ardenthq/sdk-helpers": "^2.2.0", + "@ardenthq/sdk-intl": "^2.2.0", + "@ardenthq/sdk-ledger": "^2.2.0", + "@ardenthq/sdk-profiles": "^2.2.0", "@emotion/cache": "^11.11.0", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a55754b387..5878b8c945 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,26 +12,26 @@ importers: specifier: ^1.2.0 version: 1.2.0 '@ardenthq/sdk': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@ardenthq/sdk-ark': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@ardenthq/sdk-cryptography': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@ardenthq/sdk-helpers': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@ardenthq/sdk-intl': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@ardenthq/sdk-ledger': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@ardenthq/sdk-profiles': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.2.0 + version: 2.2.0 '@emotion/cache': specifier: ^11.11.0 version: 11.13.0 @@ -406,36 +406,36 @@ packages: resolution: {integrity: sha512-0Ld6SSNEzb/TeOZ0YUDAa+vFyk65LprU+wiLjWDwhqpaDtUkJZ9MBM4alagfJ5665SN+DM7Dti2QxqKX+Y8S2w==} engines: {node: '>=14.16'} - '@ardenthq/sdk-ark@2.1.2': - resolution: {integrity: sha512-XzBcPlw9E8YpMLdbHbaWlUSVomlcZKpCh/GeH0v2xgS6xDfc3HqCPIZgxOBsK8XXR+myWQ0alMxDA0p+WlX/kQ==} + '@ardenthq/sdk-ark@2.2.0': + resolution: {integrity: sha512-6BGjjpOK+2QWOMiObgRnD1H3J0CDFNy0dE6PvUPtywuELB6GDOQKUyrdCt5B52jBlAfe5YZJRk3IFJtHLfiGFw==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk-cryptography@2.1.2': - resolution: {integrity: sha512-FGEuxtEzhw3X41llobAsvhpHZKdAb/i2bBPiwRIBFEzTRU4xaQEVULSsp/jg4BSlVY2HeA1fc/5mXvW1BZdJTg==} + '@ardenthq/sdk-cryptography@2.2.0': + resolution: {integrity: sha512-jMZYyp8cB/IOAiSneod3dClRLLwuZWoZ8B6BxQ2kRbDhTnlbUMi3zvcbvr6QxjcIdVrupKnOMPVWsiYCrINnGA==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk-helpers@2.1.2': - resolution: {integrity: sha512-XSrIyUGsjxX747qwyspePbZSjdt1s1Y4bVReS318N8OAHcnMmcoylGd8x6Ek+bpYrXW3TgicA1CNM314knYgVA==} + '@ardenthq/sdk-helpers@2.2.0': + resolution: {integrity: sha512-K+/b4TVaPhkJdpKfRxjqs1d3N8TUePBeKBJeJN8gdS69Qvg3+Y8xi+lRFUEZI8ZQ19jgRnzWTwGCZd/EIj3CWg==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk-intl@2.1.2': - resolution: {integrity: sha512-DQAcYr5yL19sW0dtm6zQjLYJyND9EsN76J5lPLrjxW3lyXJFpZawwejODShJj7VHl2yOpCcfh2ZNVL+eJ+/0tw==} + '@ardenthq/sdk-intl@2.2.0': + resolution: {integrity: sha512-FwWeGLJWAOB63978u0Jn4ofmbLeD0qpH2p5BabLZQOiFSq+JMsl7es0Z2OH+cvAkWSqwVzDbkl28MOeco47RFg==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk-ledger@2.1.2': - resolution: {integrity: sha512-zYl3QMOvMrZykhSnAQy9f+e5QmVAw7qzyAzA6htzdcZgpCfZeGknbIEc5HT2QMTlvKV9SW+Q8zKxtNAAXbBqyg==} + '@ardenthq/sdk-ledger@2.2.0': + resolution: {integrity: sha512-ELpt6ZFmYbuH4p/DfW8HygKOY9acvb19D17z6gFpDr4MRh6mwla4WBwRblH76HvXf2oHPqYHIU8iEpBS4DfkGA==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk-markets@2.1.2': - resolution: {integrity: sha512-5rXY6lDqgPFa4REoJ2h3CKpLiMcOnGVlJOOeIzShgA/ZsztB8lTSsTkKR2rq2Cm+WfZ7t2/8e8Pnzm2CO4/p1Q==} + '@ardenthq/sdk-markets@2.2.0': + resolution: {integrity: sha512-nHpvdtJjOCAnwpukS87GHdQhDmr0sKeZU1Na6XR6aMu+mLsTLxX1D47Es4NThvxcib95M/Dze0oc83FsoTLGYA==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk-profiles@2.1.2': - resolution: {integrity: sha512-fGOJ6SemLcfxrwZ3U3yXj1c5mGXFlF+043xiSn6PdTXBa46t7MNlM8dEKDdoptHel4Kg1wjYVuPhxKpZ2xuVcg==} + '@ardenthq/sdk-profiles@2.2.0': + resolution: {integrity: sha512-cqIOJKgk2vRfqaUvqlXfyx0fRfpiU8fyZbx6KbOuEjXt9UZLX7cYuvKPCxSsiM0U2UeBKxNcIvKeN32aSl319w==} engines: {node: '>=16.0.0'} - '@ardenthq/sdk@2.1.2': - resolution: {integrity: sha512-Ho9ZUqwsoQc34nzUQeUdw9qitcGvQ6DfsGbuVBvxmALQ5NUvAs7a9JosNqNsqM2UokdBmq50eKhw+RpaqEkzTg==} + '@ardenthq/sdk@2.2.0': + resolution: {integrity: sha512-/OyxMmvbR8IyQEl7S6ReqCyQ8aWc18be0+QZiEgNF2Zp/lEYNbwuThu/18iSD9xgiUTPk3gnJE34PxubvzC3jg==} engines: {node: '>=16.0.0'} '@arkecosystem/ledger-transport@2.0.0': @@ -2668,8 +2668,8 @@ packages: bip39@3.1.0: resolution: {integrity: sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==} - bn.js@4.12.0: - resolution: {integrity: sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==} + bn.js@4.12.1: + resolution: {integrity: sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==} bn.js@5.2.1: resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} @@ -7009,12 +7009,12 @@ snapshots: '@ardenthq/arkvault-url@1.2.0': {} - '@ardenthq/sdk-ark@2.1.2': + '@ardenthq/sdk-ark@2.2.0': dependencies: - '@ardenthq/sdk': 2.1.2 - '@ardenthq/sdk-cryptography': 2.1.2 - '@ardenthq/sdk-helpers': 2.1.2 - '@ardenthq/sdk-intl': 2.1.2 + '@ardenthq/sdk': 2.2.0 + '@ardenthq/sdk-cryptography': 2.2.0 + '@ardenthq/sdk-helpers': 2.2.0 + '@ardenthq/sdk-intl': 2.2.0 '@arkecosystem/ledger-transport': 2.0.0 ajv: 8.12.0 ajv-formats: 2.1.1(ajv@8.12.0) @@ -7028,7 +7028,7 @@ snapshots: lodash.set: 4.3.2 node-dotify: 1.1.0 - '@ardenthq/sdk-cryptography@2.1.2': + '@ardenthq/sdk-cryptography@2.2.0': dependencies: '@noble/hashes': 0.5.9 '@noble/secp256k1': 1.7.1 @@ -7046,7 +7046,7 @@ snapshots: typeforce: 1.18.0 uuid: 8.3.2 - '@ardenthq/sdk-helpers@2.1.2': + '@ardenthq/sdk-helpers@2.2.0': dependencies: '@hapi/bourne': 2.1.0 bad-words: 3.0.4 @@ -7060,30 +7060,30 @@ snapshots: qrcode: 1.5.4 query-string: 7.1.3 - '@ardenthq/sdk-intl@2.1.2': + '@ardenthq/sdk-intl@2.2.0': dependencies: dayjs: 1.11.13 dinero.js: 1.9.1 - '@ardenthq/sdk-ledger@2.1.2': + '@ardenthq/sdk-ledger@2.2.0': dependencies: - '@ardenthq/sdk': 2.1.2 + '@ardenthq/sdk': 2.2.0 '@ledgerhq/hw-transport-webhid': 6.29.4 '@ledgerhq/hw-transport-webusb': 6.29.4 platform: 1.3.6 - '@ardenthq/sdk-markets@2.1.2': + '@ardenthq/sdk-markets@2.2.0': dependencies: - '@ardenthq/sdk': 2.1.2 - '@ardenthq/sdk-intl': 2.1.2 + '@ardenthq/sdk': 2.2.0 + '@ardenthq/sdk-intl': 2.2.0 - '@ardenthq/sdk-profiles@2.1.2': + '@ardenthq/sdk-profiles@2.2.0': dependencies: - '@ardenthq/sdk': 2.1.2 - '@ardenthq/sdk-cryptography': 2.1.2 - '@ardenthq/sdk-helpers': 2.1.2 - '@ardenthq/sdk-intl': 2.1.2 - '@ardenthq/sdk-markets': 2.1.2 + '@ardenthq/sdk': 2.2.0 + '@ardenthq/sdk-cryptography': 2.2.0 + '@ardenthq/sdk-helpers': 2.2.0 + '@ardenthq/sdk-intl': 2.2.0 + '@ardenthq/sdk-markets': 2.2.0 '@vechain/picasso': 2.1.1 joi: 17.13.3 localforage: 1.10.0 @@ -7093,10 +7093,10 @@ snapshots: semver: 7.6.3 type-fest: 2.19.0 - '@ardenthq/sdk@2.1.2': + '@ardenthq/sdk@2.2.0': dependencies: - '@ardenthq/sdk-helpers': 2.1.2 - '@ardenthq/sdk-intl': 2.1.2 + '@ardenthq/sdk-helpers': 2.2.0 + '@ardenthq/sdk-intl': 2.2.0 bad-words: 3.0.4 bent: 7.3.12 bip39: 3.1.0 @@ -9831,7 +9831,7 @@ snapshots: dependencies: '@noble/hashes': 1.5.0 - bn.js@4.12.0: {} + bn.js@4.12.1: {} bn.js@5.2.1: {} @@ -10387,7 +10387,7 @@ snapshots: elliptic@6.6.0: dependencies: - bn.js: 4.12.0 + bn.js: 4.12.1 brorand: 1.1.0 hash.js: 1.1.7 hmac-drbg: 1.0.1 diff --git a/src/domains/transaction/components/MultiSignatureDetail/__snapshots__/SentStep.test.tsx.snap b/src/domains/transaction/components/MultiSignatureDetail/__snapshots__/SentStep.test.tsx.snap index 3fbf5d1a20..6839ea1c94 100644 --- a/src/domains/transaction/components/MultiSignatureDetail/__snapshots__/SentStep.test.tsx.snap +++ b/src/domains/transaction/components/MultiSignatureDetail/__snapshots__/SentStep.test.tsx.snap @@ -756,11 +756,11 @@ exports[`Multisignature Detail Sent Step > should render sent step %s 1`] = ` > Nonce -
- N/A -
+ 1 + diff --git a/src/domains/transaction/components/TransactionDetail/TransactionDetails/TransactionDetails.tsx b/src/domains/transaction/components/TransactionDetail/TransactionDetails/TransactionDetails.tsx index ff738a05d1..3fc2547a78 100644 --- a/src/domains/transaction/components/TransactionDetail/TransactionDetails/TransactionDetails.tsx +++ b/src/domains/transaction/components/TransactionDetail/TransactionDetails/TransactionDetails.tsx @@ -1,4 +1,4 @@ -import React, { ReactElement, useCallback } from "react"; +import React, { ReactElement } from "react"; import { useTranslation } from "react-i18next"; import { DTO } from "@ardenthq/sdk"; import { DetailDivider, DetailLabelText, DetailWrapper } from "@/app/components/DetailWrapper"; @@ -22,17 +22,6 @@ export const TransactionDetails = ({ network: transaction.wallet().network(), }); - const nonce = useCallback(() => { - try { - const data = transaction.data().data; - const nonceValue = typeof data === "function" ? transaction.data().data().nonce : data?.nonce; - - return typeof nonceValue === "string" ? nonceValue : ""; - } catch { - return ""; - } - }, [transaction]); - return (- {t("COMMON.NOT_AVAILABLE")} -
- )} +- N/A -
+ 1 + @@ -1405,11 +1405,11 @@ exports[`TransactionDetailModal > should render a magistrate modal 1`] = ` > Nonce -- N/A -
+ 1 + @@ -2215,11 +2215,11 @@ exports[`TransactionDetailModal > should render a multi payment modal 1`] = ` > Nonce -- N/A -
+ 1 + @@ -3138,11 +3138,11 @@ exports[`TransactionDetailModal > should render a multi signature modal 1`] = ` > Nonce -- N/A -
+ 1 + @@ -4146,11 +4146,11 @@ exports[`TransactionDetailModal > should render a transfer modal 1`] = ` > Nonce -- N/A -
+ 1 + @@ -4948,11 +4948,11 @@ exports[`TransactionDetailModal > should render a transfer modal with memo 1`] = > Nonce -- N/A -
+ 1 + @@ -5676,11 +5676,11 @@ exports[`TransactionDetailModal > should render an unlock tokens modal 1`] = ` > Nonce -- N/A -
+ 1 + diff --git a/src/domains/transaction/components/UnlockTokens/UnlockTokensModal.test.tsx b/src/domains/transaction/components/UnlockTokens/UnlockTokensModal.test.tsx index 9f96afa495..1a13e7e85e 100644 --- a/src/domains/transaction/components/UnlockTokens/UnlockTokensModal.test.tsx +++ b/src/domains/transaction/components/UnlockTokens/UnlockTokensModal.test.tsx @@ -83,16 +83,15 @@ describe("UnlockTokensModal", () => { isDelegateResignation: () => false, isIpfs: () => false, isMultiPayment: () => false, - isMultiPayment: () => false, isMultiSignatureRegistration: () => false, isSent: () => true, isTransfer: () => true, - isTransfer: () => true, isUnlockToken: () => true, isUnvote: () => false, isVote: () => true, isVoteCombination: () => false, memo: () => {}, + nonce: () => BigNumber.make(1), recipient: () => wallet.address(), sender: () => transactionFixture.data.sender.address, timestamp: () => DateTime.make(), @@ -239,9 +238,7 @@ describe("UnlockTokensModal", () => { await act(() => vi.runOnlyPendingTimers()); if (expectedOutcome === "success") { - await waitFor(() => { - expect(screen.findByTestId("TransactionId")).resolves.toBeVisible(); - }); + await expect(screen.findByTestId("TransactionId")).resolves.toBeVisible(); } else { await waitFor(() => { expect(screen.getByTestId("ErrorStep__errorMessage")).toBeInTheDocument(); diff --git a/src/domains/transaction/hooks/use-transaction-builder-ledger.test.tsx b/src/domains/transaction/hooks/use-transaction-builder-ledger.test.tsx index 458aea1228..716b0b36f0 100644 --- a/src/domains/transaction/hooks/use-transaction-builder-ledger.test.tsx +++ b/src/domains/transaction/hooks/use-transaction-builder-ledger.test.tsx @@ -18,6 +18,7 @@ const createTransactionMock = (wallet: Contracts.IReadWriteWallet) => explorerLink: () => `https://test.arkscan.io/transaction/${transactionFixture.data.id}`, fee: () => BigNumber.make(transactionFixture.data.fee), id: () => transactionFixture.data.id, + nonce: () => BigNumber.make(1), recipient: () => transactionFixture.data.recipient, sender: () => transactionFixture.data.sender, }); diff --git a/src/domains/transaction/pages/SendDelegateResignation/SendDelegateResignation.test.tsx b/src/domains/transaction/pages/SendDelegateResignation/SendDelegateResignation.test.tsx index 9667c814b0..b88ebdb5a5 100644 --- a/src/domains/transaction/pages/SendDelegateResignation/SendDelegateResignation.test.tsx +++ b/src/domains/transaction/pages/SendDelegateResignation/SendDelegateResignation.test.tsx @@ -71,6 +71,7 @@ const transactionResponse = { isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => transactionFixture.data.recipient, sender: () => transactionFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendIpfs/SendIpfs.Encryption.test.tsx b/src/domains/transaction/pages/SendIpfs/SendIpfs.Encryption.test.tsx index 351814658f..5531cd19d7 100644 --- a/src/domains/transaction/pages/SendIpfs/SendIpfs.Encryption.test.tsx +++ b/src/domains/transaction/pages/SendIpfs/SendIpfs.Encryption.test.tsx @@ -50,6 +50,7 @@ const ipfsTransactionFixture = { isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(6), recipient: () => ipfsFixture.data.recipient, sender: () => ipfsFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendIpfs/SendIpfs.test.tsx b/src/domains/transaction/pages/SendIpfs/SendIpfs.test.tsx index b81394cf15..0981f58490 100644 --- a/src/domains/transaction/pages/SendIpfs/SendIpfs.test.tsx +++ b/src/domains/transaction/pages/SendIpfs/SendIpfs.test.tsx @@ -56,9 +56,9 @@ const ipfsTransactionFixture = { isTransfer: () => false, isUnvote: () => false, isVote: () => false, - isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(6), recipient: () => ipfsFixture.data.recipient, sender: () => ipfsFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendIpfs/__snapshots__/SendIpfs.test.tsx.snap b/src/domains/transaction/pages/SendIpfs/__snapshots__/SendIpfs.test.tsx.snap index 73acd3e472..2981f7db34 100644 --- a/src/domains/transaction/pages/SendIpfs/__snapshots__/SendIpfs.test.tsx.snap +++ b/src/domains/transaction/pages/SendIpfs/__snapshots__/SendIpfs.test.tsx.snap @@ -2204,11 +2204,11 @@ exports[`SendIpfs > should render summary step 1`] = ` > Nonce -- N/A -
+ 6 + diff --git a/src/domains/transaction/pages/SendRegistration/SendRegistration.Ledger.test.tsx b/src/domains/transaction/pages/SendRegistration/SendRegistration.Ledger.test.tsx index 2a2789444c..738a53b228 100755 --- a/src/domains/transaction/pages/SendRegistration/SendRegistration.Ledger.test.tsx +++ b/src/domains/transaction/pages/SendRegistration/SendRegistration.Ledger.test.tsx @@ -107,6 +107,7 @@ const createMultiSignatureRegistrationMock = (wallet: Contracts.IReadWriteWallet isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => MultisignatureRegistrationFixture.data.recipient, sender: () => MultisignatureRegistrationFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendRegistration/SendRegistration.Multisignature.test.tsx b/src/domains/transaction/pages/SendRegistration/SendRegistration.Multisignature.test.tsx index 0c0f373d9c..0f877f5277 100644 --- a/src/domains/transaction/pages/SendRegistration/SendRegistration.Multisignature.test.tsx +++ b/src/domains/transaction/pages/SendRegistration/SendRegistration.Multisignature.test.tsx @@ -107,6 +107,7 @@ const createMultiSignatureRegistrationMock = (wallet: Contracts.IReadWriteWallet isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => MultisignatureRegistrationFixture.data.recipient, sender: () => MultisignatureRegistrationFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendRegistration/SendRegistration.SecondSignature.test.tsx b/src/domains/transaction/pages/SendRegistration/SendRegistration.SecondSignature.test.tsx index a1a05957b3..4f1ac7cb28 100644 --- a/src/domains/transaction/pages/SendRegistration/SendRegistration.SecondSignature.test.tsx +++ b/src/domains/transaction/pages/SendRegistration/SendRegistration.SecondSignature.test.tsx @@ -86,6 +86,7 @@ const createSecondSignatureRegistrationMock = (wallet: Contracts.IReadWriteWalle isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => SecondSignatureRegistrationFixture.data.recipient, sender: () => SecondSignatureRegistrationFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendRegistration/SendRegistration.test.tsx b/src/domains/transaction/pages/SendRegistration/SendRegistration.test.tsx index af148a377e..91be0f7b2d 100755 --- a/src/domains/transaction/pages/SendRegistration/SendRegistration.test.tsx +++ b/src/domains/transaction/pages/SendRegistration/SendRegistration.test.tsx @@ -88,6 +88,7 @@ const createDelegateRegistrationMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => DelegateRegistrationFixture.data.recipient, sender: () => DelegateRegistrationFixture.data.sender, timestamp: () => DateTime.make(), @@ -121,6 +122,7 @@ const createMultiSignatureRegistrationMock = (wallet: Contracts.IReadWriteWallet isIpfs: () => false, isMultiSignatureRegistration: () => true, isVote: () => false, + nonce: () => BigNumber.make(1), recipient: () => MultisignatureRegistrationFixture.data.recipient, sender: () => MultisignatureRegistrationFixture.data.sender, type: () => "multiSignature", diff --git a/src/domains/transaction/pages/SendTransfer/SendTransfer.Fees.test.tsx b/src/domains/transaction/pages/SendTransfer/SendTransfer.Fees.test.tsx index d382e3d935..881651cf90 100644 --- a/src/domains/transaction/pages/SendTransfer/SendTransfer.Fees.test.tsx +++ b/src/domains/transaction/pages/SendTransfer/SendTransfer.Fees.test.tsx @@ -52,6 +52,7 @@ const createTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(276), recipient: () => transactionFixture.data.recipient, recipients: () => [ { address: transactionFixture.data.recipient, amount: +transactionFixture.data.amount / 1e8 }, diff --git a/src/domains/transaction/pages/SendTransfer/SendTransfer.test.tsx b/src/domains/transaction/pages/SendTransfer/SendTransfer.test.tsx index 7ff71d2b7e..e254d96c99 100755 --- a/src/domains/transaction/pages/SendTransfer/SendTransfer.test.tsx +++ b/src/domains/transaction/pages/SendTransfer/SendTransfer.test.tsx @@ -38,6 +38,7 @@ import { } from "@/utils/testing-library"; import { server, requestMock } from "@/tests/mocks/server"; import * as useConfirmedTransactionMock from "@/domains/transaction/components/TransactionSuccessful/hooks/useConfirmedTransaction"; +import { BigNumber } from "@ardenthq/sdk-helpers"; const passphrase = getDefaultWalletMnemonic(); const fixtureProfileId = getDefaultProfileId(); @@ -70,6 +71,7 @@ const createTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(276), recipient: () => transactionFixture.data.recipient, recipients: () => [ { address: transactionFixture.data.recipient, amount: +transactionFixture.data.amount / 1e8 }, diff --git a/src/domains/transaction/pages/SendVote/SendVote.Combined.test.tsx b/src/domains/transaction/pages/SendVote/SendVote.Combined.test.tsx index 48e485f5f0..aae68e4821 100644 --- a/src/domains/transaction/pages/SendVote/SendVote.Combined.test.tsx +++ b/src/domains/transaction/pages/SendVote/SendVote.Combined.test.tsx @@ -54,6 +54,7 @@ const createVoteTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => true, isVoteCombination: () => true, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => voteFixture.data.recipient, sender: () => voteFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendVote/SendVote.Encryption.test.tsx b/src/domains/transaction/pages/SendVote/SendVote.Encryption.test.tsx index 687d04c829..7e59dc2c5a 100755 --- a/src/domains/transaction/pages/SendVote/SendVote.Encryption.test.tsx +++ b/src/domains/transaction/pages/SendVote/SendVote.Encryption.test.tsx @@ -54,6 +54,7 @@ const createVoteTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => true, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => voteFixture.data.recipient, sender: () => voteFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendVote/SendVote.Keyboard.test.tsx b/src/domains/transaction/pages/SendVote/SendVote.Keyboard.test.tsx index 4b86a0561e..a204686d0c 100755 --- a/src/domains/transaction/pages/SendVote/SendVote.Keyboard.test.tsx +++ b/src/domains/transaction/pages/SendVote/SendVote.Keyboard.test.tsx @@ -57,6 +57,7 @@ const createVoteTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => true, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => voteFixture.data.recipient, sender: () => voteFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/domains/transaction/pages/SendVote/SendVote.test.tsx b/src/domains/transaction/pages/SendVote/SendVote.test.tsx index 89d74e93b7..c7d5fbb3c4 100644 --- a/src/domains/transaction/pages/SendVote/SendVote.test.tsx +++ b/src/domains/transaction/pages/SendVote/SendVote.test.tsx @@ -58,6 +58,7 @@ const createVoteTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => true, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(158), recipient: () => voteFixture.data.recipient, sender: () => voteFixture.data.sender, timestamp: () => DateTime.make(), @@ -88,6 +89,7 @@ const createUnvoteTransactionMock = (wallet: Contracts.IReadWriteWallet) => isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(158), recipient: () => unvoteFixture.data.recipient, sender: () => unvoteFixture.data.sender, timestamp: () => DateTime.make(), diff --git a/src/tests/fixtures/transactions/index.ts b/src/tests/fixtures/transactions/index.ts index b30acd6a7a..dfc4cafc1d 100644 --- a/src/tests/fixtures/transactions/index.ts +++ b/src/tests/fixtures/transactions/index.ts @@ -31,6 +31,7 @@ export const TransactionFixture = { recipient: () => "D8rr7B1d6TL6pf14LgMz4sKp1VBMs6YUYD", recipients: () => [], amount: () => 100, + nonce: () => BigNumber.make(1), convertedAmount: () => 0, fee: () => 21, convertedFee: () => 0, diff --git a/src/utils/testing-library.tsx b/src/utils/testing-library.tsx index 10c7b8e225..9a551c2f5c 100644 --- a/src/utils/testing-library.tsx +++ b/src/utils/testing-library.tsx @@ -381,6 +381,7 @@ export const createTransactionMock = ( isVote: () => false, isVoteCombination: () => false, memo: () => null, + nonce: () => BigNumber.make(1), recipient: () => transactionFixture.data.recipient, recipients: () => [ { address: transactionFixture.data.recipient, amount: +transactionFixture.data.amount / 1e8 },