From 4cc80d7ad6f63142210d99117a419804958ca1ba Mon Sep 17 00:00:00 2001 From: Kevin Dave Date: Wed, 13 Oct 2021 15:29:33 +0700 Subject: [PATCH] fix: change note type to string (#622) * fix: change note type to string * fix: change note type to string Co-authored-by: Yo <56731761+yomarion@users.noreply.github.com> --- .../test/utils/payment-network/any/generator-data-create.ts | 2 +- packages/types/src/extensions/pn-any-declarative-types.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/advanced-logic/test/utils/payment-network/any/generator-data-create.ts b/packages/advanced-logic/test/utils/payment-network/any/generator-data-create.ts index 7475710e62..c3b5ce6c7b 100644 --- a/packages/advanced-logic/test/utils/payment-network/any/generator-data-create.ts +++ b/packages/advanced-logic/test/utils/payment-network/any/generator-data-create.ts @@ -9,7 +9,7 @@ export const arbitrarySalt = 'ea3bc7caf64110ca'; export const paymentInfo = { IBAN: 'FR123456789123456789', BIC: 'CE123456789' }; export const refundInfo = { IBAN: 'FR987654321987654321', BIC: 'CE987654321' }; export const amount = '12345'; -export const note = { transactionId: '123456789' }; +export const note = '123456789'; export const payeeDelegate = TestData.payeeDelegateRaw.identity; export const payerDelegate = TestData.payerDelegateRaw.identity; export const delegateToAdd = TestData.otherIdRaw.identity; diff --git a/packages/types/src/extensions/pn-any-declarative-types.ts b/packages/types/src/extensions/pn-any-declarative-types.ts index ea38bfb3ce..1585dd5965 100644 --- a/packages/types/src/extensions/pn-any-declarative-types.ts +++ b/packages/types/src/extensions/pn-any-declarative-types.ts @@ -36,14 +36,14 @@ export interface ICreationParameters { /** Parameters of declareSentPayment and declareSentRefund action */ export interface ISentParameters { amount: RequestLogicTypes.Amount; - note: any; + note: string; txHash?: string; } /** Parameters of declareReceivedPayment and declareReceivedRefund action */ export interface IReceivedParameters { amount: RequestLogicTypes.Amount; - note: any; + note: string; txHash?: string; }