Skip to content

Commit

Permalink
Merge pull request #24 from router-protocol/fix/amount-type-bitcoin
Browse files Browse the repository at this point in the history
update: amount type in sign tx request
  • Loading branch information
jayeshbhole-rp authored Nov 13, 2024
2 parents c8a1cae + 6ba6467 commit 2230dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/actions/bitcoin/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function executeTransferRequest(
from,
recipient,
amount: {
amount,
amount: amount.toString(),
decimals: 8, // BTC decimals
},
memo: `hex::${removeHexPrefix(memo)}`,
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/types/bitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type XfiBitcoinConnector = {
feeRate: number;
from: string;
recipient: string;
amount: { amount: number; decimals: number };
amount: { amount: string; decimals: number };
memo: string;
},
];
Expand Down Expand Up @@ -41,7 +41,7 @@ export type BitcoinTransferRequest = {
from: string;
recipient: string;
amount: {
amount: number;
amount: string;
decimals: number;
};
memo: string;
Expand Down

0 comments on commit 2230dbd

Please sign in to comment.