Skip to content

Commit

Permalink
Checks coin in all transfers
Browse files Browse the repository at this point in the history
Fixes #225
  • Loading branch information
tombeckenham committed Nov 30, 2024
1 parent 7de9cff commit 5cae8bc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/views/EvmMove/MoveFromChild/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const MoveFromChild = (props: TransferConfirmationProps) => {
const [minAmount, setMinAmount] = useState<any>(0.001);
const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount: Number(amount) || 0,
coin: currentCoin,
movingBetweenEVMAndFlow: true,
});

Expand Down
1 change: 1 addition & 0 deletions src/ui/views/EvmMove/MoveFromEvm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const MoveFromEvm = (props: TransferConfirmationProps) => {

const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount: Number(amount) || 0,
coin: currentCoin,
movingBetweenEVMAndFlow: true,
});

Expand Down
1 change: 1 addition & 0 deletions src/ui/views/EvmMove/MoveFromFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const MoveFromFlow = (props: TransferConfirmationProps) => {

const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount: Number(amount) || 0,
coin: currentCoin,
movingBetweenEVMAndFlow: true,
});

Expand Down
1 change: 1 addition & 0 deletions src/ui/views/EvmMove/MoveFromParent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const MoveFromParent = (props: TransferConfirmationProps) => {
const [minAmount, setMinAmount] = useState<any>(0.001);
const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount: Number(amount) || 0,
coin: currentCoin,
movingBetweenEVMAndFlow: true,
});

Expand Down
1 change: 1 addition & 0 deletions src/ui/views/NFT/SendNFT/MovefromParent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const MovefromParent = (props: SendNFTConfirmationProps) => {
const [selectedAccount, setSelectedChildAccount] = useState(null);
const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount: 0,
coin: 'flow',
movingBetweenEVMAndFlow: selectedAccount
? isValidEthereumAddress(selectedAccount!['address'])
: false,
Expand Down
1 change: 1 addition & 0 deletions src/ui/views/Send/SendEth/EvmConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const ToEthConfirmation = (props: ToEthConfirmationProps) => {
const movingBetweenEVMAndFlow = true;
const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount,
coin: props.data?.coinInfo?.coin,
movingBetweenEVMAndFlow,
});

Expand Down
1 change: 1 addition & 0 deletions src/ui/views/Send/SendEth/ToEthConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const ToEthConfirmation = (props: ToEthConfirmationProps) => {
const [count, setCount] = useState(0);
const { sufficient: isSufficient, sufficientAfterAction } = useStorageCheck({
transferAmount: 0,
coin: props.data?.coinInfo?.coin,
movingBetweenEVMAndFlow: true,
});

Expand Down
1 change: 1 addition & 0 deletions src/ui/views/Send/TransferConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const TransferConfirmation = (props: TransferConfirmationProps) => {
const { sufficient: isSufficient, sufficientAfterAction: isSufficientAfterAction } =
useStorageCheck({
transferAmount,
coin: props.data?.coinInfo?.coin,
movingBetweenEVMAndFlow,
});

Expand Down

0 comments on commit 5cae8bc

Please sign in to comment.