From 8d1a6a9afe09d4481d4b677f26ebaa367b101999 Mon Sep 17 00:00:00 2001 From: Mateusz Jasiuk Date: Mon, 17 Jul 2023 13:54:06 +0200 Subject: [PATCH] bug: set correct tx type --- packages/shared/lib/src/sdk/tx.rs | 2 +- packages/types/src/tx/schema/bond.ts | 2 +- packages/types/src/tx/schema/ibcTransfer.ts | 2 +- packages/types/src/tx/schema/transfer.ts | 2 +- packages/types/src/tx/schema/unbond.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/shared/lib/src/sdk/tx.rs b/packages/shared/lib/src/sdk/tx.rs index 209575b02..935d0e91d 100644 --- a/packages/shared/lib/src/sdk/tx.rs +++ b/packages/shared/lib/src/sdk/tx.rs @@ -10,7 +10,7 @@ use namada::{ key::common::PublicKey as PK, key::ed25519::PublicKey, masp::{ExtendedSpendingKey, PaymentAddress, TransferSource, TransferTarget}, - token::{Amount, DenominatedAmount, Denomination}, + token::{Amount, DenominatedAmount}, transaction::GasLimit, }, }; diff --git a/packages/types/src/tx/schema/bond.ts b/packages/types/src/tx/schema/bond.ts index 9deb75b02..e5ee378a1 100644 --- a/packages/types/src/tx/schema/bond.ts +++ b/packages/types/src/tx/schema/bond.ts @@ -19,7 +19,7 @@ export class SubmitBondMsgValue { nativeToken!: string; @field({ type: TxMsgValue }) - tx!: TxMsgValue; + tx!: InstanceType; constructor(data: SubmitBondProps) { Object.assign(this, data); diff --git a/packages/types/src/tx/schema/ibcTransfer.ts b/packages/types/src/tx/schema/ibcTransfer.ts index 014a444e5..8cd726e8a 100644 --- a/packages/types/src/tx/schema/ibcTransfer.ts +++ b/packages/types/src/tx/schema/ibcTransfer.ts @@ -7,7 +7,7 @@ import { IbcTransferProps } from "../types"; export class IbcTransferMsgValue { @field({ type: TxMsgValue }) - tx!: TxMsgValue; + tx!: InstanceType; @field({ type: "string" }) source!: string; diff --git a/packages/types/src/tx/schema/transfer.ts b/packages/types/src/tx/schema/transfer.ts index 9c98b1664..b4fcf1a27 100644 --- a/packages/types/src/tx/schema/transfer.ts +++ b/packages/types/src/tx/schema/transfer.ts @@ -7,7 +7,7 @@ import { TransferProps } from "../types"; export class TransferMsgValue { @field({ type: TxMsgValue }) - tx!: TxMsgValue; + tx!: InstanceType; @field({ type: "string" }) source!: string; diff --git a/packages/types/src/tx/schema/unbond.ts b/packages/types/src/tx/schema/unbond.ts index e87c699a2..730a66a97 100644 --- a/packages/types/src/tx/schema/unbond.ts +++ b/packages/types/src/tx/schema/unbond.ts @@ -16,7 +16,7 @@ export class SubmitUnbondMsgValue { amount!: BigNumber; @field({ type: TxMsgValue }) - tx!: TxMsgValue; + tx!: InstanceType; constructor(data: SubmitUnbondProps) { Object.assign(this, data);