Skip to content

Commit

Permalink
bug: set correct tx type
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjasiuk committed Jul 17, 2023
1 parent 29fd733 commit 8d1a6a9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/shared/lib/src/sdk/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/tx/schema/bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class SubmitBondMsgValue {
nativeToken!: string;

@field({ type: TxMsgValue })
tx!: TxMsgValue;
tx!: InstanceType<typeof TxMsgValue>;

constructor(data: SubmitBondProps) {
Object.assign(this, data);
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/tx/schema/ibcTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IbcTransferProps } from "../types";

export class IbcTransferMsgValue {
@field({ type: TxMsgValue })
tx!: TxMsgValue;
tx!: InstanceType<typeof TxMsgValue>;

@field({ type: "string" })
source!: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/tx/schema/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TransferProps } from "../types";

export class TransferMsgValue {
@field({ type: TxMsgValue })
tx!: TxMsgValue;
tx!: InstanceType<typeof TxMsgValue>;

@field({ type: "string" })
source!: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/tx/schema/unbond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class SubmitUnbondMsgValue {
amount!: BigNumber;

@field({ type: TxMsgValue })
tx!: TxMsgValue;
tx!: InstanceType<typeof TxMsgValue>;

constructor(data: SubmitUnbondProps) {
Object.assign(this, data);
Expand Down

0 comments on commit 8d1a6a9

Please sign in to comment.