Skip to content

Commit

Permalink
feat: make type password
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Sep 25, 2020
1 parent 8859057 commit db48935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/modals/transaction/decrypt-wallet-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const DecryptWalletForm: Props = args => {
return (
<Box mx="extra-loose" mt="extra-loose">
<Text textStyle="body.large">Enter your password to confirm your transaction</Text>
<Input onChange={handlePasswordInput} mt="base-loose" />
<Input onChange={handlePasswordInput} type="password" mt="base-loose" />
{hasSubmitted && decryptionError && (
<ErrorLabel>
<ErrorText>Password entered is incorrect</ErrorText>
Expand Down
9 changes: 3 additions & 6 deletions app/modals/transaction/transaction-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ export const TransactionModal: FC<TxModalProps> = ({ balance, address }) => {
);
}

console.log('tx after changing signature', tx.serialize().toString('hex'));

dispatch(
broadcastStxTransaction({
signedTx: tx,
Expand Down Expand Up @@ -245,7 +243,7 @@ export const TransactionModal: FC<TxModalProps> = ({ balance, address }) => {
network: stacksNetwork,
amount: new BN(stxToMicroStx(form.values.amount).toString()),
//
// TODO: find common burn address
// SECURITY: find common burn address
senderKey: 'f0bc18b8c5adc39c26e0fe686c71c7ab3cc1755a3a19e6e1eb84b55f2ede95da01',
});
const { amount, fee } = {
Expand Down Expand Up @@ -279,11 +277,11 @@ export const TransactionModal: FC<TxModalProps> = ({ balance, address }) => {
// if (!form.values.recipient) return;
setCalculatingMaxSpend(true);
const demoTx = await makeSTXTokenTransfer({
// SECURITY: remove hardcoded test address
recipient: form.values.recipient || 'ST3NR0TBES0A94R38EJ8TC1TGWPN9T1SHVW03ZBD7',
network: stacksNetwork,
amount: new BN(stxToMicroStx(form.values.amount).toString()),
//
// TODO: find common burn address
// SECURITY: find common burn address
senderKey: 'f0bc18b8c5adc39c26e0fe686c71c7ab3cc1755a3a19e6e1eb84b55f2ede95da01',
});
const fee = demoTx.auth.spendingCondition?.fee as BN;
Expand All @@ -307,7 +305,6 @@ export const TransactionModal: FC<TxModalProps> = ({ balance, address }) => {
header: <TxModalHeader onSelectClose={closeModalResetForm}>Send STX</TxModalHeader>,
body: (
<>
{/* ST4VFKC1WG386T43ZSMWTVM9TQGCXHR3R1VF99RV */}
<TxModalForm
balance={balance}
form={form}
Expand Down

0 comments on commit db48935

Please sign in to comment.